bilby.gw.utils.calculate_time_to_merger

bilby.gw.utils.calculate_time_to_merger(frequency, mass_1, mass_2, chi=0, safety=1.1)[source]

Leading-order calculation of the time to merger from frequency

This uses the XLALSimInspiralTaylorF2ReducedSpinChirpTime routine to estimate the time to merger. Based on the implementation in pycbc.pnutils._get_imr_duration.

Parameters:
frequency: float

The frequency (Hz) of the signal from which to calculate the time to merger

mass_1, mass_2: float

The detector frame component masses

chi: float

Dimensionless aligned-spin param

safety:

Multiplicitive safety factor

Returns:
time_to_merger: float

The time to merger from frequency in seconds