Skip to content

Commit

Permalink
reduce scope for error
Browse files Browse the repository at this point in the history
  • Loading branch information
prayush committed Jul 1, 2024
1 parent 9a091f7 commit 3a5a848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycbc/waveform/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,11 @@ def get_td_waveform(template=None, **kwargs):
modes_to_use=input_params.get("modes_to_use", [])
)
if len(esigma_params["modes_to_use"]) == 0:
if input_params["merger_ringdown_approximant"] == "SEOBNRv4PHM":
if esigma_params["merger_ringdown_approximant"] == "SEOBNRv4PHM":
esigma_params["modes_to_use"] = [(2, 2), (2, 1), (3, 3), (4, 4)]
elif input_params["merger_ringdown_approximant"] == "NRSur7dq4":
elif esigma_params["merger_ringdown_approximant"] == "NRSur7dq4":
esigma_params["modes_to_use"] = [(2, 2), (2, 1), (3, 3), (3, 2), (4, 4), (4, 3)]
if not input_params["approximant"].endswith("HM"):
if not esigma_params["approximant"].endswith("HM"):
esigma_params["modes_to_use"] = [(2, 2)]

try:
Expand Down

0 comments on commit 3a5a848

Please sign in to comment.