BracketedBreakoutSampler#
- class uvex_transients.phase_space.sampling.breakout.BracketedBreakoutSampler(schedule: SurveySchedule, mission=None, *, gap_factor: float = 1.0, **kwargs)[source]#
Count the breakouts whose explosion the survey brackets to within the duration of the breakout.
The same measurement as
BreakoutSampler, with a stricter detection. An event is recovered when its first detection comes within \(g\,x_{1/2}\,t_0\,(1+z)\) of its last non-detection, \(g\) being gap_factor and \(z\) the redshift of the event: the duration of the breakout in its own frame, stretched by its own time dilation. The last non-detection can be before the explosion. So that the survey knows when it happened to within that duration, an event with no non-detection that close to its first detection, which includes one whose first visit of a field is already a detection, is not recovered.The window of a point (the one
BreakoutSamplerfollows its events for) is that of its farthest event, and a nearby event is shorter in its own frame. A cut that takes the one window of the point would give every event the farthest one’s, up to twice what a nearby event is due, so the gap is compared event by event.- Parameters:
schedule (
SurveySchedule) – The survey to recover events against.mission (
strorm4opt.missions.Mission, optional) – The mission (detector and background), or the name of one.gap_factor (
float, optional) – The longest gap, in units of the event’s own \(x_{1/2}\,t_0\,(1+z)\). The default is one.**kwargs – The arguments of
BreakoutSamplerexceptdetection, which this sampler defines itself.
- Raises:
ValueError – If gap_factor is not positive, or a
detectionis given.
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: its band, the threshold and the gap the explosion has to be bracketed to.
detect(simulator, catalog)Return the events whose first detection is within their own window of their last non-detection.
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()).