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