Commit d2cf0b9d authored by Lukas Weber's avatar Lukas Weber

fix jobstatus confusing new sweep counts with floats

parent b84e46dd
...@@ -35,8 +35,8 @@ class JobProgress: ...@@ -35,8 +35,8 @@ class JobProgress:
if 'parallel_tempering_parameter' in jobfile.jobconfig.keys(): if 'parallel_tempering_parameter' in jobfile.jobconfig.keys():
sweeps_per_global_update = jobfile.tasks[task].get('pt_sweeps_per_global_update',1) sweeps_per_global_update = jobfile.tasks[task].get('pt_sweeps_per_global_update',1)
with h5py.File(runfile, 'r') as f: with h5py.File(runfile, 'r') as f:
tp.sweeps += f['/sweeps'][0]//sweeps_per_global_update tp.sweeps += int(f['/sweeps'][0]//sweeps_per_global_update)
tp.therm_sweeps = max(tp.therm_sweeps, f['/thermalization_sweeps'][0]//sweeps_per_global_update) tp.therm_sweeps = max(tp.therm_sweeps, int(f['/thermalization_sweeps'][0]//sweeps_per_global_update))
if tp.sweeps < tp.target_sweeps: if tp.sweeps < tp.target_sweeps:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment