Skip to content

Commit

Permalink
add SEOBNRv5_ROM time length estimator (gwastro#4451)
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-fan-wang authored and PRAVEEN-mnl committed Nov 3, 2023
1 parent 56fb660 commit ac6b6b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycbc/pnutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ def _get_imr_duration(m1, m2, s1z, s2z, f_low, approximant="SEOBNRv4"):
# NB for no clear reason this function has f_low as first argument
time_length = lalsimulation.SimIMRSEOBNRv4ROMTimeOfFrequency(
f_low, m1 * lal.MSUN_SI, m2 * lal.MSUN_SI, s1z, s2z)
elif approximant == 'SEOBNRv5_ROM':
time_length = lalsimulation.SimIMRSEOBNRv5ROMTimeOfFrequency(
f_low, m1 * lal.MSUN_SI, m2 * lal.MSUN_SI, s1z, s2z)
elif approximant == 'SPAtmplt' or approximant == 'TaylorF2':
chi = lalsimulation.SimInspiralTaylorF2ReducedSpinComputeChi(
m1, m2, s1z, s2z
Expand Down
6 changes: 6 additions & 0 deletions pycbc/waveform/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,11 @@ def seobnrv4_length_in_time(**kwds):
"""
return get_imr_length("SEOBNRv4", **kwds)

def seobnrv5_length_in_time(**kwds):
"""Stub for holding the calculation of SEOBNRv5_ROM waveform duration.
"""
return get_imr_length("SEOBNRv5_ROM", **kwds)

def imrphenomd_length_in_time(**kwds):
"""Stub for holding the calculation of IMRPhenomD waveform duration.
"""
Expand Down Expand Up @@ -1091,6 +1096,7 @@ def get_hm_length_in_time(lor_approx, maxm_default, **kwargs):
_filter_time_lengths["SEOBNRv4HM_ROM"] = seobnrv4hm_length_in_time
_filter_time_lengths["SEOBNRv4"] = seobnrv4_length_in_time
_filter_time_lengths["SEOBNRv4P"] = seobnrv4_length_in_time
_filter_time_lengths["SEOBNRv5_ROM"] = seobnrv5_length_in_time
_filter_time_lengths["IMRPhenomC"] = imrphenomd_length_in_time
_filter_time_lengths["IMRPhenomD"] = imrphenomd_length_in_time
_filter_time_lengths["IMRPhenomPv2"] = imrphenomd_length_in_time
Expand Down

0 comments on commit ac6b6b6

Please sign in to comment.