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_liv Namespace Reference

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"]
 

Function Documentation

◆ read_liv_params()

def test_liv.read_liv_params (   LALparams)

Reads LIV parameters.

Definition at line 30 of file test_liv.py.

◆ set_liv_pars()

def test_liv.set_liv_pars (   LALparams,
  logLeff,
  Asign,
  alpha 
)

Sets LIV parameters according to input values.

  • logLeff: LIV wavelength-like parameter log10lambda_eff to be set.
  • Asign: LIV sign in dispersion relation, +1.0 or -1.0.
  • alpha: Exponent of momentum in dispersion relation, between 0 and 4.

Definition at line 44 of file test_liv.py.

◆ is_liv_enabled_by_default()

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.

◆ enable_liv()

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.

◆ test_correct_liv_pars()

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.

◆ test_liv_flag_disabled_by_default()

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.

Variable Documentation

◆ args

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

Definition at line 106 of file test_liv.py.