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