Skip to content

Commit 66febbe

Browse files
committed
running code to produce results
1 parent f8fceb6 commit 66febbe

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

simplemc/likelihoods/BBNLikelihood.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
from simplemc.likelihoods.BaseLikelihood import BaseLikelihood
3+
4+
5+
class BBNLikelihood (BaseLikelihood):
6+
def __init__(self, mean=0.02218, sigma=0.00055):
7+
"""
8+
A.-K. Burns, T.M.P. Tait and M. Valli, PRyMordial: the first
9+
three minutes, within and beyond the standard model,
10+
European Physical Journal C 84 (2024) 86 [2307.07061].
11+
.
12+
Parameters
13+
----------
14+
mean
15+
sigma
16+
17+
Returns
18+
-------
19+
20+
"""
21+
BaseLikelihood.__init__(self, "BBN_%g_pm_%g" % (mean, sigma))
22+
self.mean = mean
23+
self.pr = 1/(2*sigma**2)
24+
25+
def loglike(self):
26+
return -self.pr*(self.mean-self.theory_.Obh2)**2
27+
28+
29+
class BBN(BBNLikelihood):
30+
def __init__(self):
31+
BBNLikelihood.__init__(self, 0.02218, 0.00055)

simplemc/models/HolographicCosmology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, varyOk=False, varychde=True, mean=-2,
5151

5252
# = 0 for CC, = -2 for Barrow
5353
mean = mean
54-
priors = (-3.0 , 0.0)
54+
priors = (-3.5 , -0.01)
5555
sigma = 0.1
5656

5757
self.pname = 'amp_'

simplemc/runbase.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
from .likelihoods.CompressedHDLikelihood import HubbleDiagram, HD23
5151
from .likelihoods.Compressedfs8Likelihood import fs8Diagram
5252
from .likelihoods.HubbleParameterLikelihood import RiessH0, RiessH0_21
53+
from .likelihoods.BBNLikelihood import BBN
5354

5455
from .likelihoods.StrongLensingLikelihood import StrongLensing
5556

@@ -174,8 +175,8 @@ def ParseModel(model, **kwargs):
174175
T = RotationCurves()
175176
elif model == "Chaplygin_s":
176177
T = ChaplyginCosmology(usesigmoid=True)
177-
elif model == "HDE":
178-
T = HolographicCosmology()
178+
elif model == "HDE_node1":
179+
T = HolographicCosmology(nodes=1)
179180
elif model == 'simple':
180181
T = SimpleModel(custom_parameters, custom_function)
181182
elif model == 'simple_cosmo':
@@ -284,7 +285,7 @@ def ParseDataset(datasets, **kwargs):
284285
L.addLikelihood(PLK15())
285286
elif name == 'PLK18':
286287
L.addLikelihood(PLK18())
287-
elif name == 'PLKw':
288+
elif name == 'PLKW':
288289
from .likelihoods.WangWangCMB import PlanckLikelihood
289290
L.addLikelihood(PlanckLikelihood())
290291
elif name == 'WMAP9':
@@ -324,6 +325,8 @@ def ParseDataset(datasets, **kwargs):
324325
L.addLikelihood(HubbleDiagram())
325326
elif name == 'HD23':
326327
L.addLikelihood(HD23())
328+
elif name == 'BBN':
329+
L.addLikelihood(BBN())
327330
elif name == 'fs8':
328331
L.addLikelihood(fs8Diagram())
329332
elif name == 'dline':

0 commit comments

Comments
 (0)