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:
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 hoccut/photometrycommands).Attributes
The parsed
generate:section (required by thegeneratecommand).Whether the
runcommand should keep each stage's catalog on disk (top-levelkeep_intermediate:).The resolved Mission (
mission:section; defaults to"uvex").The resolved SurveySchedule (
schedule:section; falls back to the package default).A SurveySimulator built from .schedule/.transients (cached across one CLI invocation).
The parsed
steps:section, in declared order.The resolved
{key: TransientBase instance}(transients:section, required).