BreakoutSampler#
- class uvex_transients.phase_space.sampling.breakout.BreakoutSampler(schedule: SurveySchedule, mission=None, *, log_L0=None, log_t0=None, z_max: float | None = None, table_points: int | None = None, cosmology: Cosmology | None = None, schedule_name: str | None = None, **survey)[source]#
Count the detections of a shock breakout at points of the peak-luminosity and time-scale plane.
A point is
x = (log10 L_0 / (erg/s), log10 t_0 / s): the peak bolometric luminosity \(L_0\) and the time scale \(t_0\) of the light curve, which peaks at about \(t_0\). The other parameters of the SED are fixed at the defaults ofInverseGammaBlackbodySED. One sampler makes the map of one band. See the module documentation for what counts as a detection.Every argument that is None (the default) takes
config["phase_space.breakout.<name>"], and whatSurveySettingsresolves for the survey settings, with the breakout’s own section first (a single exposure recovers it, and it needs many time bins).- Parameters:
schedule (
SurveySchedule) – The survey to recover events against.mission (
strorm4opt.missions.Mission, optional) – The mission (detector and background), or the name of one.log_L0 (
sequenceoffloat, optional) – The ranges(lo, hi)of the axes, which are also what the redshift limit is tabulated over.log_t0 (
sequenceoffloat, optional) – The ranges(lo, hi)of the axes, which are also what the redshift limit is tabulated over.z_max (
float, optional) – The redshift the limit is tabulated to, and beyond which no event is drawn.table_points (
int, optional) – Points per axis of the table of the redshift limit.cosmology (
Cosmology, optional) – Defaults to the configured cosmology.schedule_name (
str, optional) – The registry name of schedule, recorded insettingsso thatfrom_settings()can fetch the same schedule.**survey – What counts as a recovery and how a point is simulated:
band,snr_threshold,n_visits,exclude_first_visit_detections,detection,mag_limit,time_bins,nsideandorder. SeeSurveySampler.
- Raises:
ValueError – If the shape parameters of the SED are not fixed, which the window of the detection assumes, or if the lower bound of
log_t0is a time scale shorter than a dwell.
Methods
Return the volume-time of the whole sky over the whole survey out to the redshift limit, in Mpc^3 yr.
annotate_map(ax, overlay)Draw the overlay of a sampler on the axes of a figure of its map.
coverage(x)Return the fraction of the sky and survey window that the sampled footprint covers, for points of the space.
describe(settings)Describe the map of a survey sampler: its band and what it counts as a detection.
detect(simulator, catalog)Return the events of a catalog that count as recovered.
draw(x, n, seed)Simulate n events at a point and return how many the survey recovers.
draw_map(grid, points, path, title, *[, ...])Draw the fitted map of a sampler of this class and save the figure.
from_run_config(run, **options)Build a sampler from the arguments of a map in a run-config, for the survey and mission the run-config names.
from_settings(settings, *[, schedule, ...])Rebuild a sampler from the settings of another one.
kinds()Return the registered kinds this class is, the most specific first.
Return a new breakout, not yet placed at a point of the space.
measure_overlay([n_draws, seed])Measure a population in the plane of the map, to be shaded on its figure.
Return the SED parameters that a point of the space sets, from the axes bound to a parameter.
rate_products(rate)Return the products that need a volumetric rate: the expected number of recoveries over the survey.
Return the redshift out to which events are drawn at points of the space.
volume_time(x)Return the effective volume-time \(\mathcal V T\) of points of the space, in Mpc^3 yr.
Attributes
Whether
measure_overlay()is implemented, for the callers that decide whether to ask for one.The name the one transient goes by in the simulator.
The name the class is registered under, which a file records.
The axes that are parameters of the SED, which
parameters_at()uses to place a point.The quantities of a map of this sampler beyond the success fraction.
The arguments that rebuild this sampler, as plain types that an ECSV header can hold.
The axes of the sampler, with their default ranges.
What a comparison of two maps checks before it differences them.
The name of the
Scaleproduct that turns the success fraction into the quantity two maps are compared on (the volume-time, for a survey sampler: the recovered volume-time is its product with the fraction).What counts as a recovery and how a point is simulated, with the defaults applied.
The cuts that define a recovery, or None for the default (see
detect()).