EffectivePeakGrid#

class uvex_transients.models.core.detection_horizon.EffectivePeakGrid(m_eff: ndarray, z_grid: ndarray, criterion: str, k: int | None, bands: tuple[str, ...], t_rest: ndarray, parameters: dict)[source]#

Effective peak magnitudes of a sampled population on a redshift grid.

Returned by effective_peak_grid and read by observability_curve. It does not depend on any magnitude limit, so one grid serves any number of limits, confidences and tolerances.

Variables:
  • m_eff (numpy.ndarray) – Effective peak AB magnitudes, shape (M, Z): one row per draw, one column per redshift. inf means the draw emits no flux at that redshift. nan means the model has no valid epoch for it on the time grid, and counts as undetectable.

  • z_grid (numpy.ndarray) – The redshifts, shape (Z,), strictly increasing.

  • criterion ({"any", "all", "k_of_n"}) – How bands were combined; see reduce_bands.

  • k (int or None) – The k of "k_of_n", otherwise None.

  • bands (tuple of str) – Names of the bands combined.

  • t_rest (numpy.ndarray) – The rest-frame time grid in seconds.

  • parameters (dict) – The M sampled parameter values, {name: array of shape (M,)} in physical units. Row i of m_eff belongs to element i of each, so one can ask which parameters set the horizon.

Methods

Attributes