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 the detection: (and its cuts) and simulation: 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

SECTIONS

The shared section of the configuration each setting is a default of

detection

The cuts that define a recovery (see check_detection()), or None for the default.

band

The detector band that recovers the events and defines the luminosity.

snr_threshold

The signal-to-noise a visit must reach.

n_visits

How many visits must reach it.

exclude_first_visit_detections

Whether a detection that is only on a field's first visit is discarded.

mag_limit

The AB depth that sets the redshift limit of a point.

time_bins

Number of equal explosion-time bins spanning the survey.

nside

HEALPix resolution of the sampling grid.

order

HEALPix ordering of the sampling grid.