RunConfig#

class uvex_transients.cli.config.RunConfig(raw: Mapping, source: Path | None = None)[source]#

A parsed CLI run-config, resolving each section lazily on first access.

Every command reads the same config file; a command only touches the properties it actually needs (generate reads .schedule/.transients/.mission/.generate; run also reads .steps), so a config missing an unrelated section (e.g. no steps: block, if you only ever run generate) still works.

Parameters:
  • raw (Mapping) – The parsed run-config YAML, as a nested mapping.

  • source (str or Path, optional) – The config file’s path, used only to make error messages more specific.

Methods

from_yaml(path)

Parse a run-config YAML file (see uvex_transients.cli.yaml_tags.get_run_yaml).

has_section(name)

Whether the parsed config has a top-level name: section at all.

step_by_id(step_id)

Look up one of steps by its own id (used by the ad hoc cut/photometry commands).

Attributes

generate

The parsed generate: section (required by the generate command).

keep_intermediate

Whether the run command should keep each stage's catalog on disk (top-level keep_intermediate:).

mission

The resolved Mission (mission: section; defaults to "uvex").

schedule

The resolved SurveySchedule (schedule: section; falls back to the package default).

simulator

A SurveySimulator built from .schedule/.transients (cached across one CLI invocation).

steps

The parsed steps: section, in declared order.

transients

The resolved {key: TransientBase instance} (transients: section, required).