TopHatLightcurve#
- class uvex_transients.models.lightcurves.generic.TopHatLightcurve(**overrides: Parameter | Quantity | float | int)[source]#
A constant luminosity for a fixed duration, zero before and after.
\[\begin{split}L(t) = \begin{cases} A & 0 \le t \le \Delta t \\ 0 & t > \Delta t \end{cases}\end{split}\]The simplest possible pulse shape: a plateau at the peak amplitude \(A\) for a duration \(\Delta t\), with an instantaneous rise and cutoff.
Parameters
The light curve parameters are summarized below.
Parameter
Symbol
Description
amplitude\(A\)
Plateau bolometric luminosity.
duration\(\Delta t\)
Duration of the plateau.
Methods
eval(t, **parameters)Evaluate the bolometric luminosity at the given time.
eval_cgs(t, **parameters)Bolometric luminosity, taking and returning plain cgs numbers.
eval_from_arrays(t, *parameters)Positional-argument form of
eval().eval_log(t, **parameters)Natural log of the bolometric luminosity, given physical-unit inputs.
eval_log_cgs(t, **parameters)Natural log of the bolometric luminosity, taking and returning plain cgs numbers.
get(k[,d])items()keys()pack_params_to_arrays(**parameters)Convert a dict of parameter values into an ordered sequence.
sample_parameters([size, rng, parameters])Draw random samples of some or all of this model's parameters.
simulate(t[, size, rng])Draw random parameter realizations and evaluate the model at the given time.
unpack_params_from_arrays(*parameters)Convert an ordered sequence of parameter values back into a dict.
values()