Gate saved models on solver convergence and the virial milestone

This commit is contained in:
2026-09-16 15:17:38 -04:00
parent 9bd4af6996
commit 0470e3b2a1
4 changed files with 248 additions and 1 deletions

View File

@@ -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)