uvex_transients.phase_space.sampling.core.SurveySampler.from_run_config#

classmethod SurveySampler.from_run_config(run, **options) → SurveySampler[source]#

Build a sampler from the arguments of a map in a run-config, for the survey and mission the run-config names.

Parameters:
  • run (object) – The parsed run-config, with schedule, mission_name and schedule_name.

  • **options – The arguments of the sampler: the detection, simulation and settings: sections of the map, merged.

Returns:

The sampler.

Return type:

SurveySampler

Raises:

ValueError – If the sampler does not take one of the options.