Gate saved models on solver convergence and the virial milestone
This commit is contained in:
@@ -125,7 +125,10 @@ def main():
|
||||
state_files = {}
|
||||
for i, word in enumerate(case['arguments']):
|
||||
if word == '--probe-state':
|
||||
path = Path(case['arguments'][i + 1]).resolve()
|
||||
path = Path(case['arguments'][i + 1])
|
||||
if not path.is_absolute():
|
||||
path = source / path
|
||||
path = path.resolve()
|
||||
state_files[str(path)] = digest(path)
|
||||
print('START', name, flush=True)
|
||||
start = time.monotonic()
|
||||
@@ -140,6 +143,11 @@ def main():
|
||||
record['timed_out'] = True
|
||||
record['exit_code'] = None
|
||||
record.update(seconds=time.monotonic() - start, finished_utc=utc())
|
||||
record['output_hashes'] = {
|
||||
name: digest(folder / name)
|
||||
for name in ('accepted_state.txt', 'layout.csv', 'metadata.txt', 'final_physical.csv')
|
||||
if (folder / name).is_file()
|
||||
}
|
||||
write_json(output / (name + '_run.json'), record)
|
||||
summaries.append({**record, **summarize(folder)})
|
||||
write_json(output / 'summary.json', summaries)
|
||||
|
||||
Reference in New Issue
Block a user