runtraj.output.Output.keep_workdir#

Output.keep_workdir(variant, release_id, workdir, realization=None, leave_out=())[source]#

Copy a run’s working directory to kept_workdir(), replacing an earlier copy.

A failed run’s is kept, so CONTROL, SETUP.CFG, and the model’s own output can be read after the job ends. The files named in leave_out, at the top of workdir, are not copied.

Return type:

Path | UPath

Parameters:
  • variant (Variant)

  • release_id (str)

  • workdir (Path)

  • realization (int | None)

  • leave_out (Collection[str])