Skip to content

Commit 723f3f8

Browse files
committed
clipy: push forgotten changes
1 parent 96e3e17 commit 723f3f8

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

cobaya/likelihoods/base_classes/planck_clik.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def initialize(self):
7373
if isinstance(self.commands, str):
7474
self.commands = [self.commands]
7575
try:
76-
self.clik_likelihood = clipy.clik(self.clik_file, crop=self.commands)
76+
self.clik_likelihood = clipy.clik(self.clik_file, crop=self.commands or [])
7777
except clipy.clik_emul_error as excpt:
7878
# Is it that the file was not found?
7979
if not os.path.exists(self.clik_file):

tests/test_cosmo_quantities.py

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
from .common import process_packages_path
1515
from .conftest import install_test_wrapper
1616

17-
fiducial_parameters = deepcopy(params_lowTEB_highTTTEEE)
18-
redshifts = [100, 10, 1, 0]
19-
2017
# Best fit Planck 2015 as test point
2118
params_lowTEB_highTTTEEE = {
2219
# Sampled
@@ -58,6 +55,34 @@
5855
"calib_217T": 0.99598,
5956
}
6057

58+
derived_lowTEB_highTTTEEE = {
59+
# param: [best_fit, sigma]
60+
"H0": [params_lowTEB_highTTTEEE["H0"], 0.66],
61+
"omegal": [0.6844, 0.0091],
62+
"omegam": [0.3156, 0.0091],
63+
"sigma8": [0.8310, 0.013],
64+
"zrei": [10.07, 1.6],
65+
# "YHe": [0.2453409, 0.000072],
66+
# "Y_p": [0.2466672, 0.000072],
67+
# "DH": [2.6136e-5, 0.030e-5],
68+
"age": [13.8133, 0.026],
69+
"zstar": [1090.057, 0.30],
70+
"rstar": [144.556, 0.32],
71+
"thetastar": [1.040967, 0.00032],
72+
"DAstar": [13.8867, 0.030],
73+
"zdrag": [1059.666, 0.31],
74+
"rdrag": [147.257, 0.31],
75+
"kd": [0.140600, 0.00032],
76+
"thetad": [0.160904, 0.00018],
77+
"zeq": [3396.2, 33],
78+
"keq": [0.010365, 0.00010],
79+
"thetaeq": [0.8139, 0.0063],
80+
"thetarseq": [0.44980, 0.0032],
81+
}
82+
83+
fiducial_parameters = deepcopy(params_lowTEB_highTTTEEE)
84+
redshifts = [100, 10, 1, 0]
85+
6186

6287
def _get_model_with_requirements_and_eval(theo, reqs, packages_path, skip_not_installed):
6388
planck_base_model_prime = deepcopy(planck_base_model)

0 commit comments

Comments
 (0)