uvex_transients.cli.steps.checkpoint_targets#

uvex_transients.cli.steps.checkpoint_targets(config: RunConfig, keep_intermediate: bool) → list[tuple[StepSpec, Path | None]][source]#

Compute each step’s checkpoint path, or None, without running anything.

For each step in config.steps, the checkpoint path it would be written under (relative to --out-dir), or None if it wouldn’t be checkpointed at all. Used both by run_steps (each (step, path) pair reproduces exactly what it computes internally) and by a dry run / progress listing that needs to know this ahead of time.

Parameters:
  • config (RunConfig) – The parsed run-config.

  • keep_intermediate (bool) – The default “should this step be checkpointed” answer for a step whose own ~uvex_transients.cli.config.StepSpec.checkpoint is None.

Returns:

One entry per declared step, in declared order.

Return type:

list of (StepSpec, Path or None)