Commit 4213b4ac authored by Lukas Weber's avatar Lukas Weber

make loadl r --force look at the last dump

parent 13f89b74
......@@ -50,7 +50,7 @@ def run():
# check age of the different files
binary_modtime = os.stat(job.jobconfig['mc_binary']).st_mtime
try:
f = next(glob.iglob('{}.data/*/*.h5'.format(job.jobname))) # only check one of the output files for speed
f = next(glob.iglob('{}.data/{}/*.h5'.format(job.jobname,job.tasks.keys()[-1]))) # only check one of the output files for speed
data_modtime = os.stat(f).st_mtime
label = 'Warning' if args_run.force else 'Error'
......
......@@ -31,9 +31,9 @@ class MCArchive:
for obs, value in task['results'].items():
o = self.observables[obs]
o.rebinning_bin_length[i] = int(value['rebinning_bin_length'])
o.rebinning_bin_count[i] = int(value['rebinning_bin_count'])
o.autocorrelation_time[i] = float(value['autocorrelation_time'])
o.rebinning_bin_length[i] = int(value.get('rebinning_bin_length',0))
o.rebinning_bin_count[i] = int(value.get('rebinning_bin_count',0))
o.autocorrelation_time[i] = float(value.get('autocorrelation_time',0))
o.mean[i] = np.array(value['mean'], dtype=float)
o.error[i] = np.array(value['error'], dtype=float)
......
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