Skip to content

Commit ecfb66a

Browse files
committed
Update CMB_BBN_marg_nuisance_omegab_Neff.py
1 parent 9fd0b0e commit ecfb66a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/CMB_BBN_marg_nuisance_omegab_Neff.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ def lnlike(theta, n_dim):
8686
)
8787

8888
YHe = 4 * Ya
89+
90+
mH = 1.0078250322 # amu
91+
mHe = 4.0026032545 # amu
92+
Yp_CMB = 1./(4*mH/mHe*(1/YHe - 1) + 1) # actual mass density for CLASS
93+
8994
YHe_BBN = 0.2449 # Aver 2015
9095
YHe_BBN_sigma = 0.004
9196

@@ -98,7 +103,7 @@ def lnlike(theta, n_dim):
98103
# Now, do the CMB side of things
99104
# call class with the parameters specified in theta
100105
params = {
101-
'YHe': YHe, # set YHe to input from LINX
106+
'YHe': Yp_CMB, # set YHe to input from LINX, matching CLASS notation
102107
'output': 'tCl pCl lCl',
103108
'l_max_scalars': max(plik.get_lmax()), # make sure you get lmax from the hi_l likelihood
104109
'lensing': 'yes',

0 commit comments

Comments
 (0)