uvex_transients.phase_space.sampling.logistic.LogisticSampler.from_run_config#

classmethod LogisticSampler.from_run_config(run: Any, **options) → Sampler#

Build a sampler from the arguments of a map in a run-config.

A sampler that needs more than its own arguments (the survey, say) takes it from run.

Parameters:
  • run (object) – The parsed run-config, with the attributes schedule (the resolved survey schedule), mission_name and schedule_name, which it resolves only when they are read.

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

Returns:

The sampler. By default cls(**options).

Return type:

Sampler

Raises:

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