uvex_transients.phase_space.sampling.core.SurveySettings.resolve#

classmethod SurveySettings.resolve(kinds: Sequence[str] = (), **given) → SurveySettings[source]#

Build the settings, taking every one that is not given (or is None) from the configuration.

Parameters:
  • kinds (sequence of str, optional) – The kinds of the sampler, whose own sections of the configuration take precedence.

  • **given – Any of the fields, and detection as a list of cuts. nside and order default to the package’s HEALPix resolution.

Returns:

The settings, as plain types.

Return type:

SurveySettings

Raises:
  • TypeError – If a keyword is not one of the settings.

  • ValueError – If detection is not a valid list of cuts.