TransientBase#
- class uvex_transients.transients.base.TransientBase(cosmology: Cosmology | None = None, **_)[source]#
Abstract base class for transient types.
A container: one
SpectralModelinstance (sed) plus the metadata needed to window a survey simulation around it (duration_limit). All flux/magnitude/spectrum evaluation is the SED’s own job – seeSpectralModeland, for a composed lightcurve + spectral-shape SED,ComposedSpectralModel.- Parameters:
cosmology (
Cosmology, optional) – The cosmology to use for this transient class. See__init__().**_ – Ignored. See
__init__().
Methods
luminosity_function(bandpass, n, *[, ...])Estimate the luminosity function of this transient class in a band, by drawing events from its SED priors.
registry()dict[str, type[TransientBase]]: A copy of every concrete subclass imported so far, keyed by class name.
Attributes
Whether an observation measures the flux averaged over its exposure, instead of at its start.
The duration of this transient.
The SED model class associated with this transient type.
The cosmology used for luminosity-distance/volume calculations.
Upper bound on this transient's total duration.
How far after explosion Event.simulate_photometry evaluates sed.
How far before explosion Event.simulate_photometry still generates photometry.
This instance's SED -- flux, magnitude, and spectrum evaluation all live here.