44
44
"want_lcmb_full_limber" : "no" , # When it's on, it changes by chi2 ~ 0.5
45
45
})
46
46
47
+ info_theory_camb = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
48
+ info_theory_classy = {"classy" : {"extra_args" : planck_2018_precision ["classy" ]}}
49
+
47
50
# Small chi2 difference with CLASS (total still <0.35)
48
51
classy_extra_tolerance = 0.25
49
52
@@ -61,13 +64,12 @@ def test_planck_2018_t_camb(packages_path, skip_not_installed, clik=False):
61
64
"planck_2018_lowl.TT"
62
65
)
63
66
chi2 ["planck_2018_lowl.TT_clik" ] = chi2 .pop ("planck_2018_lowl.TT" )
64
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
65
67
best_fit_derived = derived_lowl_highTT_lensing
66
68
body_of_test (
67
69
packages_path ,
68
70
best_fit ,
69
71
info_likelihood ,
70
- info_theory ,
72
+ info_theory_camb ,
71
73
chi2 ,
72
74
best_fit_derived ,
73
75
skip_not_installed = skip_not_installed ,
@@ -88,13 +90,12 @@ def test_planck_2018_p_camb(packages_path, skip_not_installed, clik=False):
88
90
"planck_2018_lowl.EE"
89
91
)
90
92
chi2 ["planck_2018_lowl.EE_clik" ] = chi2 .pop ("planck_2018_lowl.EE" )
91
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
92
93
best_fit_derived = derived_lowTE_highTTTEEE_lensingcmblikes
93
94
body_of_test (
94
95
packages_path ,
95
96
best_fit ,
96
97
info_likelihood ,
97
- info_theory ,
98
+ info_theory_camb ,
98
99
chi2 ,
99
100
best_fit_derived ,
100
101
skip_not_installed = skip_not_installed ,
@@ -113,13 +114,12 @@ def test_planck_2018_t_lite_camb(packages_path, skip_not_installed, native=False
113
114
best_fit .pop ("H0" )
114
115
like_name = "planck_2018_highl_plik.TT_lite" + ("_native" if native else "" )
115
116
info_likelihood = {like_name : None }
116
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
117
117
chi2 = {like_name : chi2_planck_2018_plikHM_highTT_lite , "tolerance" : 0.01 }
118
118
body_of_test (
119
119
packages_path ,
120
120
best_fit ,
121
121
info_likelihood ,
122
- info_theory ,
122
+ info_theory_camb ,
123
123
chi2 ,
124
124
skip_not_installed = skip_not_installed ,
125
125
)
@@ -136,13 +136,12 @@ def test_planck_2018_p_lite_camb(packages_path, skip_not_installed, native=False
136
136
best_fit .pop ("H0" )
137
137
like_name = "planck_2018_highl_plik.TTTEEE_lite" + ("_native" if native else "" )
138
138
info_likelihood = {like_name : None }
139
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
140
139
chi2 = {like_name : chi2_planck_2018_plikHM_highTTTEEE_lite , "tolerance" : 0.01 }
141
140
body_of_test (
142
141
packages_path ,
143
142
best_fit ,
144
143
info_likelihood ,
145
- info_theory ,
144
+ info_theory_camb ,
146
145
chi2 ,
147
146
skip_not_installed = skip_not_installed ,
148
147
)
@@ -162,13 +161,12 @@ def test_planck_2018_t_unbinned_camb(packages_path, skip_not_installed):
162
161
best_fit .pop ("H0" )
163
162
like_name = "planck_2018_highl_plik.TT_unbinned"
164
163
info_likelihood = {like_name : None }
165
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
166
164
chi2 = {like_name : 8275.99 , "tolerance" : 0.03 }
167
165
body_of_test (
168
166
packages_path ,
169
167
best_fit ,
170
168
info_likelihood ,
171
- info_theory ,
169
+ info_theory_camb ,
172
170
chi2 ,
173
171
skip_not_installed = skip_not_installed ,
174
172
)
@@ -179,13 +177,12 @@ def test_planck_2018_p_unbinned_camb(packages_path, skip_not_installed):
179
177
best_fit .pop ("H0" )
180
178
like_name = "planck_2018_highl_plik.TTTEEE_unbinned"
181
179
info_likelihood = {like_name : None }
182
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
183
180
chi2 = {like_name : 24125.92 , "tolerance" : 0.01 }
184
181
body_of_test (
185
182
packages_path ,
186
183
best_fit ,
187
184
info_likelihood ,
188
- info_theory ,
185
+ info_theory_camb ,
189
186
chi2 ,
190
187
skip_not_installed = skip_not_installed ,
191
188
)
@@ -195,40 +192,29 @@ def test_planck_2018_p_unbinned_camb(packages_path, skip_not_installed):
195
192
196
193
197
194
def test_planck_2018_t_CamSpec_camb (packages_path , skip_not_installed ):
198
- name = "planck_2018_highl_CamSpec.TT"
199
- info_likelihood = {name : None }
200
- chi2 = {name : 7060.04 , "tolerance" : 0.2 }
201
- best_fit = params_lowTE_highTTTEEE_lite_lensingcmblikes .copy ()
202
- best_fit .update (
203
- {
204
- "aps100" : 238.7887 ,
205
- "aps143" : 41.31762 ,
206
- "aps217" : 100.6226 ,
207
- "acib217" : 44.96003 ,
208
- "asz143" : 5.886124 ,
209
- "psr" : 0.5820399 ,
210
- "cibr" : 0.7912195 ,
211
- "ncib" : 0.0 ,
212
- "cibrun" : 0.0 ,
213
- "xi" : 0.1248677 ,
214
- "aksz" : 1.153473 ,
215
- "dust100" : 1.010905 ,
216
- "dust143" : 0.9905765 ,
217
- "dust217" : 0.9658913 ,
218
- "dust143x217" : 0.9946434 ,
219
- "cal0" : 0.9975484 ,
220
- "cal2" : 1.00139 ,
221
- "calTE" : 1.0 ,
222
- "calEE" : 1.0 ,
223
- }
195
+ best_fit = deepcopy (params_t_CamSpec )
196
+ best_fit .pop ("H0" )
197
+ body_of_test (
198
+ packages_path ,
199
+ best_fit ,
200
+ lik_info_t_CamSpec ,
201
+ info_theory_camb ,
202
+ chi2_t_CamSpec ,
203
+ skip_not_installed = skip_not_installed ,
224
204
)
225
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
205
+
206
+ def test_planck_2018_t_CamSpec_classy (packages_path , skip_not_installed ):
207
+ best_fit = deepcopy (params_t_CamSpec )
208
+ best_fit .pop ("theta_MC_100" )
209
+ chi2_t_CamSpec_classy = deepcopy (chi2_t_CamSpec )
210
+ # TODO: find out the reason for the increased tolerance (plik case agrees very well)
211
+ chi2_t_CamSpec_classy ["tolerance" ] += 1.30
226
212
body_of_test (
227
213
packages_path ,
228
214
best_fit ,
229
- info_likelihood ,
230
- info_theory ,
231
- chi2 ,
215
+ lik_info_t_CamSpec ,
216
+ info_theory_classy ,
217
+ chi2_t_CamSpec_classy ,
232
218
skip_not_installed = skip_not_installed ,
233
219
)
234
220
@@ -249,12 +235,11 @@ def test_planck_2018_t_CamSpec2021_camb(packages_path, skip_not_installed):
249
235
"n_143x217" : 0.96638 ,
250
236
}
251
237
)
252
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
253
238
body_of_test (
254
239
packages_path ,
255
240
best_fit ,
256
241
info_likelihood ,
257
- info_theory ,
242
+ info_theory_camb ,
258
243
chi2 ,
259
244
skip_not_installed = skip_not_installed ,
260
245
)
@@ -288,12 +273,11 @@ def test_planck_2018_p_CamSpec_camb(packages_path, skip_not_installed):
288
273
"calEE" : 1.0 ,
289
274
}
290
275
)
291
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
292
276
body_of_test (
293
277
packages_path ,
294
278
best_fit ,
295
279
info_likelihood ,
296
- info_theory ,
280
+ info_theory_camb ,
297
281
chi2 ,
298
282
skip_not_installed = skip_not_installed ,
299
283
)
@@ -317,12 +301,11 @@ def test_planck_2018_p_CamSpec2021_camb(packages_path, skip_not_installed):
317
301
"calEE" : 1.00124 ,
318
302
}
319
303
)
320
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
321
304
body_of_test (
322
305
packages_path ,
323
306
best_fit ,
324
307
info_likelihood ,
325
- info_theory ,
308
+ info_theory_camb ,
326
309
chi2 ,
327
310
skip_not_installed = skip_not_installed ,
328
311
)
@@ -334,13 +317,12 @@ def test_planck_2018_p_CamSpec2021_camb(packages_path, skip_not_installed):
334
317
def test_planck_2018_lcmbmarged_camb (packages_path , skip_not_installed ):
335
318
best_fit = params_lensing_cmbmarged
336
319
info_likelihood = lik_info_lensing_cmbmarged .copy ()
337
- info_theory = {"camb" : {"extra_args" : planck_2018_precision ["camb" ]}}
338
320
best_fit_derived = {}
339
321
body_of_test (
340
322
packages_path ,
341
323
best_fit ,
342
324
info_likelihood ,
343
- info_theory ,
325
+ info_theory_camb ,
344
326
chi2_lensing_cmbmarged ,
345
327
best_fit_derived ,
346
328
skip_not_installed = skip_not_installed ,
@@ -355,7 +337,6 @@ def test_planck_2018_t_classy(packages_path, skip_not_installed):
355
337
best_fit .pop ("theta_MC_100" )
356
338
best_fit = params_lowl_highTT_lensing
357
339
info_likelihood = lik_info_lowl_highTT_lensing .copy ()
358
- info_theory = {"classy" : {"extra_args" : planck_2018_precision ["classy" ]}}
359
340
best_fit_derived = deepcopy (derived_lowl_highTT_lensing )
360
341
for p in classy_unknown :
361
342
best_fit_derived .pop (p , None )
@@ -365,7 +346,7 @@ def test_planck_2018_t_classy(packages_path, skip_not_installed):
365
346
packages_path ,
366
347
best_fit ,
367
348
info_likelihood ,
368
- info_theory ,
349
+ info_theory_classy ,
369
350
chi2_lowl_highTT_classy ,
370
351
best_fit_derived ,
371
352
skip_not_installed = skip_not_installed ,
@@ -376,7 +357,6 @@ def test_planck_2018_p_classy(packages_path, skip_not_installed):
376
357
best_fit = deepcopy (params_lowTE_highTTTEEE_lensingcmblikes )
377
358
best_fit .pop ("theta_MC_100" )
378
359
info_likelihood = lik_info_lowTE_highTTTEEE_lensingcmblikes .copy ()
379
- info_theory = {"classy" : {"extra_args" : planck_2018_precision ["classy" ]}}
380
360
best_fit_derived = deepcopy (derived_lowTE_highTTTEEE_lensingcmblikes )
381
361
for p in classy_unknown :
382
362
best_fit_derived .pop (p , None )
@@ -386,7 +366,7 @@ def test_planck_2018_p_classy(packages_path, skip_not_installed):
386
366
packages_path ,
387
367
best_fit ,
388
368
info_likelihood ,
389
- info_theory ,
369
+ info_theory_classy ,
390
370
chi2_lowl_highTT_classy ,
391
371
best_fit_derived ,
392
372
skip_not_installed = skip_not_installed ,
@@ -569,3 +549,34 @@ def test_planck_2018_p_classy(packages_path, skip_not_installed):
569
549
"logA" : 3.2528000e00 ,
570
550
"ns" : 9.6135180e-01 ,
571
551
}
552
+
553
+ # Best fit CamSpec ############################################################
554
+
555
+ lik_info_t_CamSpec = {"planck_2018_highl_CamSpec.TT" : None }
556
+
557
+ chi2_t_CamSpec = {"planck_2018_highl_CamSpec.TT" : 7058.63 , "tolerance" : 0.2 }
558
+
559
+ # Same point as the corresponding plik one
560
+ params_t_CamSpec = params_lowl_highTT_lite_lensing .copy ()
561
+
562
+ params_t_CamSpec .update ({
563
+ "aps100" : 238.7887 ,
564
+ "aps143" : 41.31762 ,
565
+ "aps217" : 100.6226 ,
566
+ "acib217" : 44.96003 ,
567
+ "asz143" : 5.886124 ,
568
+ "psr" : 0.5820399 ,
569
+ "cibr" : 0.7912195 ,
570
+ "ncib" : 0.0 ,
571
+ "cibrun" : 0.0 ,
572
+ "xi" : 0.1248677 ,
573
+ "aksz" : 1.153473 ,
574
+ "dust100" : 1.010905 ,
575
+ "dust143" : 0.9905765 ,
576
+ "dust217" : 0.9658913 ,
577
+ "dust143x217" : 0.9946434 ,
578
+ "cal0" : 0.9975484 ,
579
+ "cal2" : 1.00139 ,
580
+ "calTE" : 1.0 ,
581
+ "calEE" : 1.0 ,
582
+ })
0 commit comments