uvex_transients.transients.horizon.HorizonCurve.generate#
- classmethod HorizonCurve.generate(transient, *, mag_limits: ArrayLike | None = None, progress: bool = True, **settings) HorizonCurve[source]#
Compute the curve of a transient in the
uvex_fastbands, which takes seconds to a minute.Runs ~uvex_transients.models.core.detection_horizon.detection_horizon on the transient’s priors, duration and cosmology, with this module’s settings and seed. One grid serves every magnitude limit, and the crossings are interpolated, so the limit is good to about 2% but is not guaranteed to be an overestimate.
- Parameters:
transient (
ExtragalacticTransient) – The transient to compute the curve of. Its priors, duration and cosmology are used.mag_limits (
array-like, optional) – The AB magnitude limits to tabulate. Defaults to MAG_LIMITS.progress (
bool, optional) – Whether to show a progress bar. The default is True.**settings – Overrides of SETTINGS (
confidence,tolerance,n_samples,n_z,n_time). The defaults are what the stored curves use, so overriding them is meant for tests.
- Returns:
The curve. Nothing is written to disk.
- Return type:
- Raises:
TypeError – If settings has a key that is not in SETTINGS.
RuntimeError – If the redshift grid, after being extended several times, still does not reach some limit.