Skip to content
Snippets Groups Projects
Commit 516dc6f8 authored by Chad Hanna's avatar Chad Hanna
Browse files

chirptime.py: Fix the overestimate of the final black hole spin PR 2023

parent 9fa9dcd3
No related branches found
No related tags found
No related merge requests found
......@@ -116,11 +116,8 @@ def mergetime(M):
def overestimate_j_from_chi(chi):
"""
Overestimate final black hole spin
formula is roughly based on
Tichy and Marronetti Physical Review D 78 081501 (2008)
(don't allow j >= 1 ... truncate at 0.998)
"""
return max(0.686 + 0.15 * chi, chi, 0.998)
return min(max(lalsim.SimIMREOBFinalMassSpin(1, 1, [0, 0, chi], [0, 0, chi], lalsim.GetApproximantFromString('SEOBNRv2'))[2], abs(chi)), 0.998)
def imr_time(f, m1, m2, j1, j2, f_max = None):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment