uvex_transients.phase_space.sampling.breakout.BreakoutSampler.detect#
- BreakoutSampler.detect(simulator: SurveySimulator, catalog: EventCatalog) EventCatalog#
Return the events of a catalog that count as recovered.
This is what a recovery is. It applies each cut of detection in turn to the events that survived the one before, and with no detection it is the one
snrcut, so that an event is recovered when at least n_visits of its observations reach snr_threshold in the band. A cut is given the sampler’s snr_threshold, n_visits, exclude_first_visit_detections andbands(the band of the map) for each of those it takes and its entry leaves out.Override it for a rule that is not a sequence of cuts. It is called once per draw, and has to return the rows of catalog that are recovered. The epochs of the events (each observation, with its time and its measured SNR) are from
iter_epochs(), and a boolean mask over the rows of the catalog is applied withdataclasses.replace(catalog, table=catalog.table[mask]).- Parameters:
simulator (
SurveySimulator) – The simulator that made catalog, which the cuts and the epochs of the events are taken from.catalog (
EventCatalog) – The n events drawn at a point.
- Returns:
The events of catalog that are recovered.
- Return type: