Functions | |
def | get_amp_phase (h) |
def | sum_sqr_diff (x, y) |
def | gen_test_data (spin1x, approximant, mode_array, lalparams=None, type='bbh', generic_spins=False, deltaF=1./4., release=None) |
compute the difference between two waveforms and compare to expected value More... | |
def | test_IMRPhenomXAS () |
This test checks that IMRPhenomXAS hasn't changed. More... | |
def | test_IMRPhenomXHM () |
This test checks that IMRPhenomXHM hasn't changed. More... | |
def | test_IMRPhenomXP () |
This test checks that IMRPhenomXP hasn't changed. More... | |
def | test_IMRPhenomXP_NNLO () |
This test checks that IMRPhenomXP with the NNLO precession option (version 102) hasn't changed. More... | |
def | test_IMRPhenomXP_MB () |
This test checks that IMRPhenomXP hasn't changed. More... | |
def | test_IMRPhenomXP_SpinTaylor () |
This test checks that IMRPhenomXP with the SpinTaylor precession option (version 310) hasn't changed. More... | |
def | test_IMRPhenomXPHM () |
This test checks that IMRPhenomXPHM hasn't changed. More... | |
def | test_IMRPhenomXO4a () |
This test checks that IMRPhenomXO4a hasn't changed. More... | |
def | test_IMRPhenomXPHM_SpinTaylor () |
This test checks that IMRPhenomXPHM with the SpinTaylor precession option (version 310) hasn't changed. More... | |
def | test_IMRPhenomXAS_NRTidalv2 () |
This test checks that IMRPhenomXAS_NRTidalv2 hasn't changed. More... | |
def | test_IMRPhenomXP_NRTidalv2 () |
This test checks that IMRPhenomXP_NRTidalv2 hasn't changed. More... | |
def | test_IMRPhenomXP_NRTidalv2_SpinTaylor () |
This test checks that IMRPhenomXP_NRTidalv2 with the SpinTaylor precession (version 310) hasn't changed. More... | |
def | test_IMRPhenomXPNR () |
This test checks that IMRPhenomXO4a hasn't changed. More... | |
Variables | |
args = sys.argv[1:] or ["-v", "-rs", "--junit-xml=junit-phenomX.xml"] | |
def test_phenomX.get_amp_phase | ( | h | ) |
Definition at line 29 of file test_phenomX.py.
def test_phenomX.sum_sqr_diff | ( | x, | |
y | |||
) |
Definition at line 34 of file test_phenomX.py.
def test_phenomX.gen_test_data | ( | spin1x, | |
approximant, | |||
mode_array, | |||
lalparams = None , |
|||
type = 'bbh' , |
|||
generic_spins = False , |
|||
deltaF = 1./4. , |
|||
release = None |
|||
) |
compute the difference between two waveforms and compare to expected value
type: should either be 'bbh' or 'bns' generic_spins: Use generic spins (with in-plane spins scaled from spin1x, which must be at most ~0.69, and aligned spins hard-coded) if True; otherwise the only potentially nonzero spin component is spin1x
Definition at line 47 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXAS | ( | ) |
This test checks that IMRPhenomXAS hasn't changed.
It does this by generating two PhenomXAS waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0., lalsimulation.IMRPhenomXAS, None, generic_spins=True))
Definition at line 151 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXHM | ( | ) |
This test checks that IMRPhenomXHM hasn't changed.
It does this by generating two PhenomXHM waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0., lalsimulation.IMRPhenomXHM, mode_array))
where mode_array is [[2,2],[2,-2],[2,1],[2,-1],[3,3],[3,-3],[4,4],[4,-4]] or [[3,2],[3,-2]]
Definition at line 172 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXP | ( | ) |
This test checks that IMRPhenomXP hasn't changed.
It does this by generating two PhenomXP waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXP, None, generic_spins=False))
Definition at line 212 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXP_NNLO | ( | ) |
This test checks that IMRPhenomXP with the NNLO precession option (version 102) hasn't changed.
It does this by generating two PhenomXP waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following code:
lalDict = lal.CreateDict()
lalsimulation.SimInspiralWaveformParamsInsertPhenomXPrecVersion(lalDict, 102)
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXP, None, lalparams=lalDict, generic_spins=False))
Definition at line 239 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXP_MB | ( | ) |
This test checks that IMRPhenomXP hasn't changed.
It does this by generating two PhenomXP waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXP, None, generic_spins=True))
FIXME: This description needs to be corrected if this is kept.
Definition at line 265 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXP_SpinTaylor | ( | ) |
This test checks that IMRPhenomXP with the SpinTaylor precession option (version 310) hasn't changed.
It does this by generating two PhenomXP waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following code:
lalDict = lal.CreateDict()
lalsimulation.SimInspiralWaveformParamsInsertPhenomXPrecVersion(lalDict, 310)
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXP, None, lalparams=lalDict, generic_spins=True))
Definition at line 291 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXPHM | ( | ) |
This test checks that IMRPhenomXPHM hasn't changed.
It does this by generating two PhenomXPHM waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXPHM, mode_array, generic_spins=True))
where mode_array is [[2,2],[2,1],[3,3],[4,4]] or [[3,2]]
Definition at line 317 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXO4a | ( | ) |
This test checks that IMRPhenomXO4a hasn't changed.
It does this by generating two IMRPhenomXO4a waveforms and computing
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXO4a))
Definition at line 356 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXPHM_SpinTaylor | ( | ) |
This test checks that IMRPhenomXPHM with the SpinTaylor precession option (version 310) hasn't changed.
It does this by generating two PhenomXPHM waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following code:
lalDict = lal.CreateDict()
lalsimulation.SimInspiralWaveformParamsInsertPhenomXPrecVersion(lalDict, 310)
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXPHM, mode_array, lalparams=lalDict, generic_spins=True))
where mode_array is [[2,2],[2,1],[3,3],[4,4]] or [[3,2]]
Definition at line 389 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXAS_NRTidalv2 | ( | ) |
This test checks that IMRPhenomXAS_NRTidalv2 hasn't changed.
It does this by generating two IMRPhenomXAS_NRTidalv2 waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0., lalsimulation.IMRPhenomXAS_NRTidalv2, None, type="bns", generic_spins=True))
Definition at line 422 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXP_NRTidalv2 | ( | ) |
This test checks that IMRPhenomXP_NRTidalv2 hasn't changed.
It does this by generating two IMRPhenomXP_NRTidalv2 waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following line:
expected_result = np.array(gen_test_data(0.2, lalsimulation.IMRPhenomXP_NRTidalv2, None, type="bns", generic_spins=True))
Definition at line 442 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXP_NRTidalv2_SpinTaylor | ( | ) |
This test checks that IMRPhenomXP_NRTidalv2 with the SpinTaylor precession (version 310) hasn't changed.
It does this by generating two IMRPhenomXP_NRTidalv2 waveforms and computing their difference (according to their amplitude and phases) and compares them to pre-computed values.
these pre-computed values were computed using the following code:
lalDict = lal.CreateDict()
lalsimulation.SimInspiralWaveformParamsInsertPhenomXPrecVersion(lalDict, 310)
expected_result = np.array(gen_test_data(0.2, lalsimulation.IMRPhenomXP_NRTidalv2, None, lalparams=lalDict, type="bns", generic_spins=True))
Definition at line 467 of file test_phenomX.py.
def test_phenomX.test_IMRPhenomXPNR | ( | ) |
This test checks that IMRPhenomXO4a hasn't changed.
It does this by generating two IMRPhenomXO4a waveforms and computing
expected_result = np.array(gen_test_data(0.5, lalsimulation.IMRPhenomXO4a))
Definition at line 487 of file test_phenomX.py.
test_phenomX.args = sys.argv[1:] or ["-v", "-rs", "--junit-xml=junit-phenomX.xml"] |
Definition at line 507 of file test_phenomX.py.