CCL
Functions | Variables
ccl_test_distances Namespace Reference

Functions

def read_chi_test_file ()
 
def read_dm_test_file ()
 
def compare_distances (z, chi_bench, dm_bench, Omega_v, w0, wa)
 
def test_distance_model_0 ()
 
def test_distance_model_1 ()
 
def test_distance_model_2 ()
 
def test_distance_model_3 ()
 
def test_distance_model_4 ()
 

Variables

int DISTANCES_TOLERANCE = 1e-4
 
float Omega_c = 0.25
 
float Omega_b = 0.05
 
int N_nu_rel = 0.
 
float h = 0.7
 
float A_s = 2.1e-9
 
float n_s = 0.96
 
 Omega_v_vals = np.array([0.7, 0.7, 0.7, 0.65, 0.75])
 
 w0_vals = np.array([-1.0, -0.9, -0.9, -0.9, -0.9])
 
 wa_vals = np.array([0.0, 0.0, 0.1, 0.1, 0.1])
 

Function Documentation

◆ compare_distances()

def ccl_test_distances.compare_distances (   z,
  chi_bench,
  dm_bench,
  Omega_v,
  w0,
  wa 
)
Compare distances calculated by pyccl with the distances in the benchmark 
file.
This test is only valid when radiation is explicitly set to 0.

◆ read_chi_test_file()

def ccl_test_distances.read_chi_test_file ( )
Read the file containing all the radial comoving distance benchmarks 
(distances are in Mpc/h)

◆ read_dm_test_file()

def ccl_test_distances.read_dm_test_file ( )
Read the file containing all the distance modulus benchmarks 

◆ test_distance_model_0()

def ccl_test_distances.test_distance_model_0 ( )

◆ test_distance_model_1()

def ccl_test_distances.test_distance_model_1 ( )

◆ test_distance_model_2()

def ccl_test_distances.test_distance_model_2 ( )

◆ test_distance_model_3()

def ccl_test_distances.test_distance_model_3 ( )

◆ test_distance_model_4()

def ccl_test_distances.test_distance_model_4 ( )

Variable Documentation

◆ A_s

float ccl_test_distances.A_s = 2.1e-9

◆ DISTANCES_TOLERANCE

int ccl_test_distances.DISTANCES_TOLERANCE = 1e-4

◆ h

float ccl_test_distances.h = 0.7

◆ N_nu_rel

int ccl_test_distances.N_nu_rel = 0.

◆ n_s

float ccl_test_distances.n_s = 0.96

◆ Omega_b

float ccl_test_distances.Omega_b = 0.05

◆ Omega_c

float ccl_test_distances.Omega_c = 0.25

◆ Omega_v_vals

ccl_test_distances.Omega_v_vals = np.array([0.7, 0.7, 0.7, 0.65, 0.75])

◆ w0_vals

ccl_test_distances.w0_vals = np.array([-1.0, -0.9, -0.9, -0.9, -0.9])

◆ wa_vals

ccl_test_distances.wa_vals = np.array([0.0, 0.0, 0.1, 0.1, 0.1])