Source code for pycif.plugins.models.dummy.flushrun
try:
import cPickle as pickle
except ImportError:
import pickle
[docs]
def flushrun(self, rundir, mode, transform_id, full_flush=True):
"""Cleaning attributes to the model"""
# Dump the H matrix if required
if self.save_H:
fout = "{}/model/H_matrix.pickle".format(self.workdir)
with open(fout, "wb") as f:
pickle.dump(self.H_matrix, f, pickle.HIGHEST_PROTOCOL)