uvex_transients.missions.get_mission#

uvex_transients.missions.get_mission(name: str, *, downsample: bool | None = None) → Mission[source]#

Resolve a mission name to a ~m4opt.missions.Mission, optionally with downsampled bandpasses.

A registered fast name ("uvex_fast") is always downsampled. For any other name, downsample decides, and None defers to config["missions.downsample.enabled"]. The downsampling parameters always come from the missions.downsample configuration section. Downsampled missions are built once per distinct set of parameters and cached.

Parameters:
  • name (str) – An attribute name of m4opt.missions, or a key of FAST_MISSIONS.

  • downsample (bool, optional) – Force downsampling on or off for a non-fast name. Ignored for a fast name.

Returns:

The resolved mission.

Return type:

Mission

Raises:

ValueError – If name is not a known mission.