PhaseSpaceConfig#

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

A parsed phase-space run-config, resolving the survey lazily on first access.

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.

Raises:

ValueError – If the file has an unknown key anywhere, or a map without a valid, unique id. Every problem is reported at once.

Methods

from_yaml(path)

Parse a phase-space run-config YAML file.

select(ids)

Return the maps with the given ids, or all of them if ids is empty.

Attributes

mission

The resolved mission.

mission_name

The name of the mission, config["phase_space.mission"] unless the file gives one.

schedule

The resolved schedule.

schedule_name

The registry name of the schedule, recorded in each map; None if it has none.