Creates a new sampler from an hdf5 database.

def restore_sampler(fname):
    """
    Creates a new sampler from an hdf5 database.
    """
    hf = tables.open_file(fname)
    fnode = hf.root.__sampler__
    import pickle
    sampler = pickle.load(fnode)
    return sampler