Skip to content

Commit

Permalink
Add IMRPhenomXAS template duration (#4410)
Browse files Browse the repository at this point in the history
* Add IMRPhenomXAS template duration

* removing assertion

* fixed fomatting for codeclimate

* Adding PhenomXAS duration and removing space fixes

* removing extra new line

---------

Co-authored-by: Bhooshan Gadre <bhooshan.gadre@ligo.org>
  • Loading branch information
bhooshan-gadre and Bhooshan Gadre authored Jul 24, 2023
1 parent 8f784ed commit 480c7c6
Showing 1 changed file with 3 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 @@ -514,6 +514,9 @@ def _get_imr_duration(m1, m2, s1z, s2z, f_low, approximant="SEOBNRv4"):
chi = lalsimulation.SimIMRPhenomBComputeChi(m1, m2, s1z, s2z)
time_length = lalsimulation.SimIMRSEOBNRv2ChirpTimeSingleSpin(
m1 * lal.MSUN_SI, m2 * lal.MSUN_SI, chi, f_low)
elif approximant == 'IMRPhenomXAS':
time_length = lalsimulation.SimIMRPhenomXASDuration(
m1 * lal.MSUN_SI, m2 * lal.MSUN_SI, s1z, s2z, f_low)
elif approximant == "IMRPhenomD":
time_length = lalsimulation.SimIMRPhenomDChirpTime(
m1 * lal.MSUN_SI, m2 * lal.MSUN_SI, s1z, s2z, f_low)
Expand Down

0 comments on commit 480c7c6

Please sign in to comment.