Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALSimulation 6.2.0.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
test_phenomT Namespace Reference

Functions

def get_amp_phase (h)
 
def sum_sqr_diff (x, y)
 
def gen_test_data (spin1x, approximant, mode_array, PV, FS)
 compute the difference between two waveforms and compare to expected value More...
 
def test_IMRPhenomT ()
 This test checks that IMRPhenomT hasn't changed. More...
 
def test_IMRPhenomTHM ()
 This test checks that IMRPhenomTHM hasn't changed. More...
 
def test_IMRPhenomTP ()
 This test checks that IMRPhenomTPHM hasn't changed. More...
 
def test_IMRPhenomTPHM ()
 This test checks that IMRPhenomTPHM hasn't changed. More...
 

Variables

 args = sys.argv[1:] or ["-v", "-rs", "--junit-xml=junit-phenomT.xml"]
 

Function Documentation

◆ get_amp_phase()

def test_phenomT.get_amp_phase (   h)

Definition at line 28 of file test_phenomT.py.

◆ sum_sqr_diff()

def test_phenomT.sum_sqr_diff (   x,
  y 
)

Definition at line 33 of file test_phenomT.py.

◆ gen_test_data()

def test_phenomT.gen_test_data (   spin1x,
  approximant,
  mode_array,
  PV,
  FS 
)

compute the difference between two waveforms and compare to expected value

Definition at line 40 of file test_phenomT.py.

◆ test_IMRPhenomT()

def test_phenomT.test_IMRPhenomT ( )

This test checks that IMRPhenomT hasn't changed.

It does this by generating two PhenomT 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.IMRPhenomT))

Definition at line 109 of file test_phenomT.py.

◆ test_IMRPhenomTHM()

def test_phenomT.test_IMRPhenomTHM ( )

This test checks that IMRPhenomTHM hasn't changed.

It does this by generating two PhenomTHM 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.IMRPhenomTHM))

Definition at line 128 of file test_phenomT.py.

◆ test_IMRPhenomTP()

def test_phenomT.test_IMRPhenomTP ( )

This test checks that IMRPhenomTPHM hasn't changed.

It does this by generating two PhenomTHM 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.IMRPhenomTP, None, PV, FS))

Definition at line 147 of file test_phenomT.py.

◆ test_IMRPhenomTPHM()

def test_phenomT.test_IMRPhenomTPHM ( )

This test checks that IMRPhenomTPHM hasn't changed.

It does this by generating two PhenomTHM 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.IMRPhenomTPHM, None, PV, FS))

Definition at line 175 of file test_phenomT.py.

Variable Documentation

◆ args

test_phenomT.args = sys.argv[1:] or ["-v", "-rs", "--junit-xml=junit-phenomT.xml"]

Definition at line 193 of file test_phenomT.py.