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 example mission.detector.bandpasses["FUV"].

  • n_draws (int, optional) – Number of parameter draws. If None (the default), uses config["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 default config["phase_space.overlay.t_min"] days, and config["phase_space.overlay.t_max_factor"] times the class’s DEFAULT_DURATION.

  • t_max (Quantity, optional) – Ends of the logarithmic grid of rest-frame times the light curve is evaluated on. By default config["phase_space.overlay.t_min"] days, and config["phase_space.overlay.t_max_factor"] times the class’s DEFAULT_DURATION.

  • n_time (int, optional) – Number of grid points. If None (the default), uses config["phase_space.overlay.n_time"].

  • rng (int or numpy.random.Generator, optional) – Random-number source for the draws, as for sample_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), and measured, false where the draw has no peak or its luminosity never halves within the grid. meta holds the class name.

Return type:

QTable