TransientBase#

class uvex_transients.transients.base.TransientBase(cosmology: Cosmology | None = None, **_)[source]#

Abstract base class for transient types.

A container: one SpectralModel instance (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 – see SpectralModel and, 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

registry()

dict[str, type[TransientBase]]: A copy of every concrete subclass imported so far, keyed by class name.

Attributes

DEFAULT_DURATION

The duration of this transient.

DEFAULT_MODEL

The SED model class associated with this transient type.

cosmology

The cosmology used for luminosity-distance/volume calculations.

duration_limit

Upper bound on this transient's total duration.

sed

This instance's SED -- flux, magnitude, and spectrum evaluation all live here.