Functions | |
| def | read_liv_params (LALparams) |
| Reads LIV parameters. More... | |
| def | set_liv_pars (LALparams, logLeff, Asign, alpha) |
| Sets LIV parameters according to input values. More... | |
| def | is_liv_enabled_by_default (LALparams) |
| This checks if LIV flag is disabled by default. More... | |
| def | enable_liv (LALparams) |
| This enables the LIV flag, by enabling it, the LIV parameters will be sampled upon. More... | |
| def | test_correct_liv_pars () |
| This tests if the default LIV parameters are correct. More... | |
| def | test_liv_flag_disabled_by_default () |
| This tests that the liv flag is disabled by default. More... | |
Variables | |
| args = sys.argv[1:] or ["-v", "-rs", "--junit-xml=junit-liv.xml"] | |
| def test_liv.read_liv_params | ( | LALparams | ) |
Reads LIV parameters.
Definition at line 30 of file test_liv.py.
| def test_liv.set_liv_pars | ( | LALparams, | |
| logLeff, | |||
| Asign, | |||
| alpha | |||
| ) |
Sets LIV parameters according to input values.
Definition at line 44 of file test_liv.py.
| def test_liv.is_liv_enabled_by_default | ( | LALparams | ) |
This checks if LIV flag is disabled by default.
Definition at line 54 of file test_liv.py.
| def test_liv.enable_liv | ( | LALparams | ) |
This enables the LIV flag, by enabling it, the LIV parameters will be sampled upon.
Definition at line 62 of file test_liv.py.
| def test_liv.test_correct_liv_pars | ( | ) |
This tests if the default LIV parameters are correct.
Additionally it tests LIV parameters are being inserted correctly.
expected_result = np.array([100.0,1.0,0.0]) are the default values of log10lambda_eff, A_sign and alpha respectively
Definition at line 76 of file test_liv.py.
| def test_liv.test_liv_flag_disabled_by_default | ( | ) |
This tests that the liv flag is disabled by default.
Additionally it checks the flag may be enabled properly.
expected_result = 0 is the default value of the LIV flag
Definition at line 93 of file test_liv.py.
| test_liv.args = sys.argv[1:] or ["-v", "-rs", "--junit-xml=junit-liv.xml"] |
Definition at line 106 of file test_liv.py.