@@ -33,7 +33,7 @@ def __init__(self, varyOk=False, varychde=True, mean=-2,
33
33
self .varyOk = varyOk
34
34
self .varychde = varychde
35
35
36
- self .c_par = Parameter ("c" , 1.0 , 0.1 , (0.5 , 2.0 ), "c" )
36
+ self .c_par = Parameter ("c" , 1.0 , 0.1 , (0.0 , 2.0 ), "c" )
37
37
38
38
self .Ok = Ok_par .value
39
39
self .c_hde = self .c_par .value
@@ -51,8 +51,8 @@ def __init__(self, varyOk=False, varychde=True, mean=-2,
51
51
52
52
# = 0 for CC, = -2 for Barrow
53
53
mean = mean
54
- priors = (- 3 , 1 )
55
- sigma = 0.2
54
+ priors = (- 3.0 , 0.0 )
55
+ sigma = 0.1
56
56
57
57
self .pname = 'amp_'
58
58
amps = 1 if nodes <= 1 else nodes
@@ -115,7 +115,8 @@ def ini_function(self):
115
115
116
116
def extra_term (self , z , Ode ):
117
117
# Bear in mind that f=D-2
118
- q_term = self .c_hde ** 2 / (self .Om * (1 + z )** 3 )
118
+ h0_c = 100 * self .h / (constants .c / 1000. )
119
+ q_term = self .c_hde ** 2 / (h0_c ** 2 * self .Om * (1 + z )** 3 )
119
120
return q_term * (1 - Ode )/ Ode
120
121
121
122
@@ -127,7 +128,7 @@ def RHS_hde(self, Ode, z):
127
128
128
129
if np .abs (func ) > self .tol :
129
130
ex_term = self .extra_term (z , Ode )
130
- fact += - 1 * func * np .sqrt (Ode )/ self .c_hde * ex_term ** (0.5 * ( func + 2 ) / func )
131
+ fact += - 1 * func * np .sqrt (Ode )/ self .c_hde * ex_term ** (0.5 + 1. / func )
131
132
132
133
# derivative term
133
134
if self .nnodes > 1 :
@@ -169,7 +170,7 @@ def EoS(self, z):
169
170
170
171
if np .abs (self .ffunc (z )) > self .tol :
171
172
ex_term = self .extra_term (z , Ode )
172
- fact += - 1 * func * np .sqrt (Ode )/ self .c_hde * ex_term ** (0.5 * ( func + 2 ) / func )
173
+ fact += - 1 * func * np .sqrt (Ode )/ self .c_hde * ex_term ** (0.5 + 1. / func )
173
174
174
175
if self .nnodes > 1 :
175
176
fact += (1 + z )/ func * self .dffunc (z )* np .log (ex_term )
0 commit comments