Skip to content

Commit

Permalink
Add IMRPhenomXAS template duration (gwastro#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 <[email protected]>
  • Loading branch information
bhooshan-gadre and Bhooshan Gadre committed Mar 1, 2024
1 parent a579f9c commit 1fae10a
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 1fae10a

Please sign in to comment.