uvex_transients.cli.steps#

Executes a RunConfig’s steps: list.

The config-driven generalization of the old hardcoded cuts -> photometry -> ... sequence. Each ~uvex_transients.cli.config.StepSpec (cut, logical_op, or action) is run strictly in declared order against a growing artifact store ({id: artifact}), seeded by the caller with at least "baseline" (the raw generated ~uvex_transients.simulation.event_catalog.EventCatalog) and typically also "exposure" (see uvex_transients.cli.config.RESERVED_ARTIFACT_IDS). A step’s own id becomes its artifact’s key once it’s run, so any later step can reference it as an input regardless of its type – a cut step feeds another cut or a logical_op just as an action step (e.g. photometry) can feed another action (e.g. event_summary).

Structural validation (unique ids, resolvable inputs, known registry names, arity) is already done by ~uvex_transients.cli.config.RunConfig.steps itself, the moment it’s accessed – accessing it is the “validate the whole graph before running anything” pass; run_steps does this up front, before executing step 1, by simply reading config.steps before its loop starts.

Functions

apply_cut_scoped(simulator, cut_name, ...)

Run a cut step, optionally restricted to a subset of transient_type values.

checkpoint_targets(config, keep_intermediate)

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

describe_step_specs(step_list)

Describe a list of StepSpec as human-readable report lines, without running anything.

describe_steps(config)

Describe config.steps as human-readable report lines, without running anything.

run_steps(config, store[, out_dir, ...])

Run every step in config.steps, in order, against store.