uvex_transients.phase_space.analysis.overlay.measure_class#
- uvex_transients.phase_space.analysis.overlay.measure_class(transient_class: type[ExtragalacticTransient], bandpass, *, n_draws: int | None = None, t_min: Quantity | None = None, t_max: Quantity | None = None, n_time: int | None = None, rng=0) QTable[source]#
Measure the peak band luminosity and the half-decline time of draws from a class’s SED priors.
- Parameters:
transient_class (
type) – A transient class; its SED, with the priors it gives its parameters, is sampled.bandpass (
synphot.SpectralElement) – The band of the map, for examplemission.detector.bandpasses["FUV"].n_draws (
int, optional) – Number of parameter draws. If None (the default), usesconfig["phase_space.overlay.n_draws"].t_min (
Quantity, optional) – Ends of the logarithmic grid of rest-frame times the light curve is evaluated on. By defaultconfig["phase_space.overlay.t_min"]days, andconfig["phase_space.overlay.t_max_factor"]times the class’sDEFAULT_DURATION.t_max (
Quantity, optional) – Ends of the logarithmic grid of rest-frame times the light curve is evaluated on. By defaultconfig["phase_space.overlay.t_min"]days, andconfig["phase_space.overlay.t_max_factor"]times the class’sDEFAULT_DURATION.n_time (
int, optional) – Number of grid points. If None (the default), usesconfig["phase_space.overlay.n_time"].rng (
intornumpy.random.Generator, optional) – Random-number source for the draws, as forsample_parameters().
- Returns:
One row per draw:
log_luminosity(log10 of the peak band luminosity in erg/s),log_half_time(log10 of the half-decline time in days), andmeasured, false where the draw has no peak or its luminosity never halves within the grid.metaholds the class name.- Return type: