SurveySimulator#

class uvex_transients.simulation.core.SurveySimulator(survey_schedule: SurveySchedule, transients: dict[str, ExtragalacticTransient] | None = None, simulation_seed: int | None = None)[source]#

Samples transient populations against a survey schedule.

Parameters:
  • survey_schedule (SurveySchedule) – The schedule to sample events against. See __init__().

  • transients (dict of str to ExtragalacticTransient, optional) – The transient types to register. See __init__().

  • simulation_seed (int, optional) – Root seed for Monte Carlo sampling. See __init__().

Methods

available_actions()

Tuple of str: Every action name registered on this class via @action, sorted.

available_cuts()

Tuple of str: Every cut name registered on this class via @cut, sorted.

compute_effective_exposure(time_bins[, ...])

Tabulate each registered transient type's effective exposure per time bin.

filter_by_baseline(catalog, mission, ...[, ...])

Cut on the spacing (days) between each event's own SNR-qualifying detection epochs.

filter_by_first_visit_detected(catalog, ...)

Drop single-epoch detections that fall on their field's very first survey visit.

filter_by_limiting_magnitude(catalog, ...[, ...])

Cheaply cut an EventCatalog down to events that could ever plausibly be seen.

filter_by_peak_flux(catalog, mission[, ...])

Cut on each event's own peak observed flux (erg/s/cm^2/Hz).

filter_by_peak_luminosity(catalog, mission)

Cut on each event's own peak bolometric luminosity (erg/s).

filter_by_peak_magnitude(catalog, mission[, ...])

Cut on each event's own peak (brightest) apparent AB magnitude.

filter_by_query(catalog, mission, expr)

Cut an EventCatalog by an arbitrary boolean expression over its own columns.

filter_by_redshift(catalog, mission[, ...])

Cut an EventCatalog by its own redshift column.

filter_by_region(catalog, mission, region)

Keep only events inside a sky region.

filter_by_sky_position(catalog, mission, frame)

Keep (or drop) events whose position falls in a longitude/latitude box, in any coordinate frame.

filter_by_snr(catalog, mission, snr_threshold)

Cut an EventCatalog down to events the schedule actually detects.

filter_by_time_since_last_nondetection(...)

Cut on the time (days) from each event's last non-detection to its first detection.

filter_by_time_to_first_detection(catalog, ...)

Cut on the time (days) from explosion to each event's first SNR-qualifying detection.

filter_by_transient_type(catalog, mission, types)

Keep only rows whose transient_type is one of types, dropping every other type.

generate_events(time_bins[, nside, order, ...])

Sample a Monte Carlo realization of every registered transient type over a time grid.

get_cut(name)

Return the function of a registered cut, without running it.

iter_epochs(catalog, mission, bands, ...)

Lazily yield every observation of every event, one chunk of events at a time.

run_action(name, mission, **inputs_and_params)

Run one @action-registered pipeline action by name.

run_cut(name, catalog, mission, **params)

Run one @cut-registered screening method by name.

run_event_summary_action(catalog, exposure, ...)

Build a per-event summary table: when each event was first and last seen, and how it peaked.

run_photometry_action(catalog, mission[, ...])

Run synthetic photometry over every event in catalog.

sample_N_events(count, time_bins[, nside, order])

Sample a fixed number of events of every registered transient type over a time grid.

Attributes

simulation_seed

Root seed for Monte Carlo sampling.

survey_schedule

The schedule events are sampled against.

transient_collection

The registered transient types, keyed by name.