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; cut reads .schedule/.transients/.mission/.cuts; photometry reads .schedule/.transients/.mission/.photometry), so a config missing an unrelated section (e.g. no photometry: block, if you never run that command) 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.Attributes
The parsed
cuts:section, in declared order (required by thecutcommand).The parsed
detection_counts:section (required by thedetection-countscommand).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 parsed
photometry:section (optional; every field defaults to "every band"/the package default).The resolved SurveySchedule (
schedule:section; falls back to the package default).A SurveySimulator built from .schedule/.transients (cached across one CLI invocation).
The resolved
{key: TransientBase instance}(transients:section, required).The parsed
yield:section (optional; defaults to a0.9Clopper-Pearson confidence level).