Skip to content

Commit

Permalink
restrict modes being used with SEOBNRv4PHM MR
Browse files Browse the repository at this point in the history
  • Loading branch information
prayush committed Jun 26, 2024
1 parent 1b08c00 commit 4caa967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pycbc/waveform/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,11 @@ def get_td_waveform(template=None, **kwargs):
return hp, hc
except Exception as exc:
try:
print(f"Going to generate ESIGMA with SEOBNRv4PHM, Modes used: (2,2), (2,1), (3,3), (4,4)")
esigma_params["merger_ringdown_approximant"] = "SEOBNRv4PHM"
if input_params["approximant"] == "IMRESIGMAHM":
hp, hc = esigma_utils.get_imr_esigma_waveform(
**esigma_params, modes_to_use=[(2, 2), (2, 1), (3, 3), (3, 2), (4, 4), (4, 3)]
**esigma_params, modes_to_use=[(2, 2), (2, 1), (3, 3), (4, 4)]
)
elif input_params["approximant"] == "IMRESIGMA":
hp, hc = esigma_utils.get_imr_esigma_waveform(
Expand All @@ -695,6 +696,7 @@ def get_td_waveform(template=None, **kwargs):
print(f"""Failed to generate waveform with input_params={input_params},
with errors: {exc}""")
return None, None
return hp, hc
except Exception as exc2:
print(f"""Failed to generate waveform with input_params={input_params},
with errors: {exc}
Expand Down

0 comments on commit 4caa967

Please sign in to comment.