uvex_transients.simulation.exposure_catalog.ExposureCatalog.get_exposure_between#

ExposureCatalog.get_exposure_between(t_start: Time, t_end: Time, transient_type: str | None = None) → Quantity | dict[str, Quantity][source]#

Effective exposure accrued within [t_start, t_end), grouped by transient type.

Partially overlapping bins are weighted by the fraction of their own duration that falls inside the window; see _bin_overlap_weights.

Parameters:
  • t_start (Time) – The query window.

  • t_end (Time) – The query window.

  • transient_type (str, optional) – If given, return only that type’s exposure (a scalar Quantity) rather than a dict of every type present.

Returns:

The exposure between the two time limits.

Return type:

Quantity or dict[str, Quantity]