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) withsimulation_seed=42,time_bins=10,nside=32and a 1/500 subset of the events (the earlierdownsample=500, read back as asampling_factorof 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 (
strorPath, optional) – Path to the catalog file. If None (the default), uses the packagedtest_data/simulation/example_event_catalog.ecsv.- Returns:
The packaged example catalog.
- Return type:
See also
EventCatalog.from_diskThe general-purpose loader this delegates to.