uvex_transients.models.core.detection_horizon.reduce_bands#
- uvex_transients.models.core.detection_horizon.reduce_bands(peak_mags: ndarray, criterion: Literal['any', 'all', 'k_of_n'] = 'any', k: int | None = None) ndarray[source]#
Combine per-band peak magnitudes into one effective peak magnitude.
Magnitudes run backwards, so an event is detected at a limit when the result is at most the limit.
- Parameters:
peak_mags (
numpy.ndarray) – Per-band peak magnitudes, shape(..., B).criterion (
{"any", "all", "k_of_n"}) –"any": detected in at least one band (the minimum over bands)."all": in every band (the maximum)."k_of_n": in at least k bands (the k-th smallest).k (
int, optional) – Required for"k_of_n", with1 <= k <= B.
- Returns:
Shape
(...).- Return type: