

def _trigger_resume_snapshot(self):
    ' Makes the trajectory continuable in case the user wants that'
    dump_dict = {
        
    }
    dump_filename = os.path.join(self._resume_path, 'environment.ecnt')
    prev_full_copy = self._traj.v_full_copy
    dump_dict['full_copy'] = prev_full_copy
    self._traj.v_full_copy = True
    prev_storage_service = self._traj.v_storage_service
    self._traj.v_storage_service = self._storage_service
    dump_dict['trajectory'] = self._traj
    dump_dict['args'] = self._args
    dump_dict['kwargs'] = self._kwargs
    dump_dict['runfunc'] = self._runfunc
    dump_dict['postproc'] = self._postproc
    dump_dict['postproc_args'] = self._postproc_args
    dump_dict['postproc_kwargs'] = self._postproc_kwargs
    dump_dict['start_timestamp'] = self._start_timestamp
    dump_file = open(dump_filename, 'wb')
    dill.dump(dump_dict, dump_file, protocol=2)
    dump_file.flush()
    dump_file.close()
    self._traj.v_full_copy = prev_full_copy
    self._traj.v_storage_service = prev_storage_service

dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py Environment._trigger_resume_snapshot/original