lalsimulation feature request - approximant mode content
We have had a feature request for a new function in lalsimulation to aid with higher mode models.
The request is to have have a function that returns the list of modes that a particular waveform model has.
I sketch a possible solution to this with pseudo-python code. The code could (should?) be written in C. But it might be a nice opportunity to add some functionality to the lalsimulation python directory.
def lalsim_approximant_mode_content(approx=lalsim.SEOBNRv4PHM):
if approx == "SEOBNRv4PHM":
return [("2,2"), ("2,1"), ...]
elif approx == "IMRPhenomXHM":
return [("2,2"), ("2,1"), ...]
elif approx == "IMRPhenomX":
return [("2,2")]
.... etc
Would anyone like to take this on?