From 1fae10a2f852761208e8894b5248b46feffee3d7 Mon Sep 17 00:00:00 2001 From: Bhooshan Uday Varsha Gadre Date: Mon, 24 Jul 2023 17:58:28 +0200 Subject: [PATCH] Add IMRPhenomXAS template duration (#4410) * 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 --- pycbc/pnutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pycbc/pnutils.py b/pycbc/pnutils.py index dfe03fa9912..9d1e0da669e 100644 --- a/pycbc/pnutils.py +++ b/pycbc/pnutils.py @@ -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)