uvex_transients.cli.pipeline.dry_run_report#
- uvex_transients.cli.pipeline.dry_run_report(config: RunConfig, command: str, outputs: Iterable[Path] = (), overwrite: bool = False, step_ids: list[str] | None = None) tuple[list[str], bool][source]#
Validate config for command and describe what it would do, without sampling or writing anything.
Resolving each section the command needs is itself the validation: an unknown transient class, a bad parameter override, an unknown cut/op/action name or a dangling step input, or an unknown mission or unreadable schedule all raise exactly as they would in a real run. The (potentially large) schedule is loaded, but no events are sampled and no output file is created.
- Parameters:
config (
RunConfig) – The parsed run-config.command (
{"generate", "cut", "photometry", "run"}) – Which command is being dry-run; decides which config sections are validated."run"validatesgenerate:and the wholesteps:list;"cut"/"photometry"validate step_ids against config.steps.outputs (
iterableofpathlib.Path, optional) – The files the real command would write, checked for collisions.overwrite (
bool, optional) – Whether the real command would be run with--overwrite.step_ids (
listofstr, optional) – For"cut"/"photometry", the ad hoc step id(s) that would run (see uvex_transients.cli.main’s per-command semantics).
- Returns:
- Raises:
ValueError – If a name in step_ids isn’t a declared step, or names a step of the wrong type.