uvex_transients.models.core.lightcurve_metrics.decline_time#
- uvex_transients.models.core.lightcurve_metrics.decline_time(t: Quantity, luminosity: Quantity, fraction: float = 0.5) Quantity[source]#
Measure the time from the peak until the luminosity first falls to a fraction of it.
The crossing is interpolated linearly in \(\ln L\) against \(\ln t\) between the two grid points that bracket it.
- Parameters:
- Returns:
The decline time of each draw, shape
(N,).NaNwhere the luminosity never falls that far within the grid (the draw is censored), or the draw has no valid epoch.- Return type:
- Raises:
ValueError – If fraction is not between 0 and 1.