uvex_transients.phase_space.sampling.core#
Survey-backed samplers: the machinery shared by every sampler that simulates events against a survey schedule.
A SurveySampler answers “how many detections in n tries at a point?”
by placing a transient at the point, drawing n events volume-weighted out to its redshift limit on the footprint the
survey covers, and counting how many
filter_by_snr() recovers. What differs between the kinds of map
is only the transient, how a point of the space places it, and the redshift limit, so those are what a subclass
supplies. The rest is here: the detection definition, the survey and its settings, the noise-free scales (the exposure,
volume-time and coverage of a point) and the products made from them.
Axes and parameters. A point of the space is turned into the parameters of the transient’s SED in one of two ways.
An axis can be bound to a parameter by name with a ParameterAxis:
the coordinate is then \(\log_{10}\) of the parameter in a unit (or the parameter itself, on a linear axis), and the
sampler fixes it with no physics code. Or an axis can be a derived quantity, such as a luminosity in a band, and the
subclass places the point itself. The link is declared here, on the sampler, so that a
Space stays free of any model.
What counts as a detection. By default a recovery is at least n_visits observations above snr_threshold in the
band (filter_by_snr()). Any other definition is a detection: an
ordered list of the simulator’s registered cuts, the same ones a run-config’s steps: use, applied to the events a
point draws, and the events that survive them are the recoveries. A subclass whose rule is not a sequence of cuts
overrides SurveySampler.detect. The noise-free
scales do not depend on the rule, only on the window events are followed for, so a rule that needs observations beyond
that window has to be given a longer one.
The recovery fraction of a point is conditional on the footprint that was sampled, which depends on the number of explosion-time bins. The noise-free volume-time \(\mathcal V T\) is the expected number of events over the survey in that footprint at one event per \(\mathrm{Mpc}^3\,\mathrm{yr}\). The product \(f\,\mathcal V T\) does not depend on the binning, and is the expected number of recoveries at unit rate.
The samplers built on it are in their own modules: canonical (the canonical
map) and breakout (shock breakout).
Functions
|
Check a definition of a detection and return it as plain types. |
|
Describe what a map counts as a detection, in a few words. |
Classes
|
The link from one axis of a sampler's space to one parameter of its transient's SED. |
|
Count the recoveries of a transient simulated against a survey: what every survey-backed sampler shares. |
|
What every survey sampler decides about a recovery and its simulation, resolved against the configured defaults. |