Imr phenom xhm support#263
Conversation
Added IMRPhenomXHM to approximants in generate_FD_modes_LO and set convert_J_to_L0_frame to run for IMRPhenomXPHM only
mpuerrer
left a comment
There was a problem hiding this comment.
It would be good to add a comment which explains why IMRPhenomXHM behaves differently from IMRPhenomXPHM. In the code we see that both approximants are supported in the if statement in line 664, but in line 679 the check is only for IMRPhenomXPHM. Don't leave the reader guessing, but give a clear and concise statement about why they need to be treated differently.
Added line to say tested approximants can be in either L0 or J frame.
There was a problem hiding this comment.
Thanks for updating line 661. If you read through the comments in the entire function, you'll see that there are other places where the comments should be updated: in line 674 it would be good to specify that "For some waveform models considered here ... the modes are returned in the J-frame".
And it would be good to add near the beginning of the function -- line 662 which frame each of the waveform model's modes are give in, perhaps like this:
# IMRPhenomXPHM: modes in J-frame
# IMRPhenomXHM: modes in L-frame
It also isn't necessary to list the numbers 101, 97 anymore because we have the names and the numbers come from a C enum in LALSimulation which would change if someone were to insert a waveform before a particular approximant.
updated more comments in `generate_FD_modes_LO` to make it more clear what waveforms are returned in J frame and which are returned in the L frame.
mpuerrer
left a comment
There was a problem hiding this comment.
Thanks, this looks good to me.
|
@stephengreen please have a look as well if you are happy with this change. |
stephengreen
left a comment
There was a problem hiding this comment.
Thanks @sclyne623. To be sure that this works properly, please extend the test
to include IMRPhenomXHM.
correctly for IMRPhenomXHM
avoid hard coded approximant
adds the IMRPhenomXHM approximant to the list of valid approximants in the
generate_FD_modes_LO functionand added a conditional check beforeconvert_J_to_L0_frameas IMRPhenomXHM is not generated in the J frame.