uvex_transients.simulation.event_catalog.get_example_event_catalog#

uvex_transients.simulation.event_catalog.get_example_event_catalog(path: str | Path | None = None) → EventCatalog[source]#

Load the packaged example EventCatalog, so docs/examples don’t have to resample one.

The packaged catalog (test_data/simulation/example_event_catalog.ecsv) is a raw (pre-cut) catalog of 598 events – 344 ~uvex_transients.transients.supernovae.MagnetarSLSNe (“slsn”) and 254 ~uvex_transients.transients.TDEs.TidalDisruptionEvent (“tde”) – generated once against the default schedule (see ~uvex_transients.surveys.get_schedule) with simulation_seed=42, time_bins=10, nside=32 and a 1/500 subset of the events (the earlier downsample=500, read back as a sampling_factor of 0.002). Sphinx gallery examples that only need a representative catalog to demonstrate a cut/action on can load this instead of re-running SurveySimulator.generate_events – a nontrivial Monte Carlo draw – on every doc build.

Parameters:

path (str or Path, optional) – Path to the catalog file. If None (the default), uses the packaged test_data/simulation/example_event_catalog.ecsv.

Returns:

The packaged example catalog.

Return type:

EventCatalog

See also

EventCatalog.from_disk

The general-purpose loader this delegates to.