jaxrens.cli.output_gate¶
Output-dir safety gate and restart-checkpoint discovery for jaxrens run.
The gate refuses to start when working_dir already holds artifacts
matching the configured out_file_prefix — without it, re-running the
same config against the same output dir silently truncates .energies
and concatenates duplicate frames into .traj.extxyz.
The same prefix-aware globbing is reused by discover_checkpoint()
for the --resume (auto-restart) flow, which looks up a checkpoint in
working_dir instead of taking an explicit path from the YAML.
Functions
Pick the checkpoint to restart from in |
|
Abort the run (or wipe artifacts) if |
|
Load a previously-written config snapshot YAML into a dict. |
|
The fixed filename a fresh |
|
Locate the snapshot YAML that should sit next to a checkpoint. |
|
Dump the validated root config to |