uvex_transients.cli.pipeline.dry_run_report#
- uvex_transients.cli.pipeline.dry_run_report(config: RunConfig, command: str, outputs: Iterable[Path] = (), overwrite: bool = False, cut_names: 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 type or cut name, an unknown mission, or an 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", "detection-counts", "run"}) – Which command is being dry-run; decides which config sections are validated."run"validatesgenerate:,cuts:(if declared),photometry:, anddetection_counts:(if declared).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.cut_names (
listofstr, optional) – For"cut", which of the config’s cuts would run (default: every declared cut).
- Returns: