SurveySettings#
- class uvex_transients.phase_space.sampling.core.SurveySettings(band: str, snr_threshold: float, n_visits: int, exclude_first_visit_detections: bool, mag_limit: float, time_bins: int, nside: int, order: str, detection: tuple[dict, ...] | None = None)[source]#
What every survey sampler decides about a recovery and its simulation, resolved against the configured defaults.
This is the one place the defaults of these settings are applied and validated: a sampler, the run-config and the dry run all go through
resolve()and default. The fields are the keys of thedetection:(and itscuts) andsimulation:sections of a run-config, and of the same sections of the package configuration.Methods
as_dict()Return the settings a map records, as plain types.
default(key[, kinds])Return the configured default of one of the settings for a kind of sampler.
resolve([kinds])Build the settings, taking every one that is not given (or is None) from the configuration.
Attributes
The shared section of the configuration each setting is a default of
The cuts that define a recovery (see
check_detection()), or None for the default.The detector band that recovers the events and defines the luminosity.
The signal-to-noise a visit must reach.
How many visits must reach it.
Whether a detection that is only on a field's first visit is discarded.
The AB depth that sets the redshift limit of a point.
Number of equal explosion-time bins spanning the survey.
HEALPix resolution of the sampling grid.
HEALPix ordering of the sampling grid.