Skip to content

Commit

Permalink
Added framework for spectral distortions likelihoods, plus mock FIRAS…
Browse files Browse the repository at this point in the history
… and PIXIE (D. C. Hooper, M. Lucca, N. Schoeneberg). Added new Pantheon likelihood with prior on the absolute magnitude (D. Camarena). Various bugfixes.
  • Loading branch information
Thejs Brinckmann committed Sep 20, 2021
2 parents deaefcf + be571e0 commit 4f010ad
Show file tree
Hide file tree
Showing 33 changed files with 2,232 additions and 115 deletions.
12 changes: 0 additions & 12 deletions TODO.rst

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.0
3.5.0
9 changes: 7 additions & 2 deletions changelog.dat
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
v3.4.0
+ Added BBN likelihoods from 1907.11594 (N. Schoeneberg, D. C. Hooper)
v3.5.0 + Added framework for spectral distortions likelihoods, plus mock FIRAS and PIXIE (D. C. Hooper, M. Lucca, N. Schoeneberg)
+ Added new Pantheon likelihood with prior on the absolute magnitude (D. Camarena)
+ Updated Pantheon likelihood to latest value
+ Various bugfixes related to python2 / python3 compatibility (D. C. Hooper, N. Schoeneberg)
+ Various additional bugfixes
---------------------------------------------------------------------
v3.4.0 + Added BBN likelihoods from 1907.11594 (N. Schoeneberg, D. C. Hooper)
+ Added H0LICOW likelihoods from 1907.04869 (S. Taubenberger, S. Suyu)
+ New feature: experiment specifications passed in .param files now overwrite ones in .data files, which allows for testing different likelihood specifications simultaneously (N. Schoeneberg)
+ New plotting features: to_derive allows to add new parameters in the plot file without overwriting the old parameter, and to_reorder allows to choose the order of parameters for the plots (N. Schoeneberg)
Expand Down
1,049 changes: 1,049 additions & 0 deletions data/Pantheon/lcparam_full_long_zhel.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/Pantheon/pantheon.dataset
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = Pantheon
data_file = data/lcparam_full_long.txt
data_file = data/lcparam_full_long_zhel.txt
pecz = 0
intrinsicdisp = 0
twoscriptmfit = F
Expand Down
182 changes: 182 additions & 0 deletions data/spectral_templates/COintegratedTemplate.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
# Frequency in GHz, Intensity in Jy/sr
8.357700725203175, 0.0009969805387623626
8.468648883353303, 0.0011937518225327863
8.573521390822023, 0.001441384662716714
8.69720536287404, 0.0017813350847471058
8.830967009837394, 0.002229101097000851
8.966785889837318, 0.002789419993575114
9.11242117768354, 0.0034976422623692947
9.244728839164127, 0.004297971388854657
9.406837965208648, 0.005454927795136098
9.551514481910008, 0.006812332162750753
9.731376232472517, 0.008733895171245
9.889427996334422, 0.010995731405649937
10.092757256404406, 0.014355961791682538
10.309006593374267, 0.01889512648144532
10.56119016070646, 0.025738427006643784
10.764626823696883, 0.03326622338941204
11.032641178292737, 0.04476841204809008
11.28338482598503, 0.058331416995971046
11.515385244486028, 0.07448348980946035
11.782087473905683, 0.0990294117721714
12.02944196563925, 0.12696276115505167
12.276797221784484, 0.15759816777710178
12.492092002079467, 0.19365971852795028
12.738151313056484, 0.238936279926426
12.983545804676615, 0.2959917241337259
13.18326170530718, 0.3507322306181877
13.471480177898508, 0.4327314687391344
13.707742502019771, 0.516920702813095
13.954066927481103, 0.617489210515139
14.1927791560151, 0.7272663246754576
14.404992161418948, 0.8496660096570225
14.65141900639793, 0.9997091856991212
14.895738262602322, 1.1810105834628617
15.14413891380736, 1.3797759029491699
15.41628574003817, 1.6217926441840687
15.706637270941814, 1.9256119382825219
16.036438702557405, 2.2817332896568177
16.40095585416294, 2.7700588965051343
16.731134424713606, 3.2823516892521765
17.067957065819623, 3.9051335438235517
17.404190593875942, 4.553164298314942
17.73200256499712, 5.266006795030033
18.119713466422517, 6.127474496984654
18.492354639112868, 7.101121447987902
18.904705702064742, 8.296247633209573
19.359066419641827, 9.790911981407715
19.83274722392399, 11.719414862003052
20.33528591420858, 13.691804671083744
20.815209873321376, 15.93165128820965
21.342652319513338, 18.42590744437
21.892749281521027, 21.224736601571717
22.457026694191146, 24.399357973397372
23.074973750118286, 27.99220780693543
23.730033907298186, 32.637327196949215
24.52824582659538, 37.8998375074232
25.46107334786738, 44.81837666402699
26.384584403139506, 52.15022894848194
27.44619013594515, 60.43682588736711
28.57475990194189, 69.19633100645582
29.348660976821, 75.32360927976919
29.99048029868956, 80.51618048178929
30.64634343479548, 85.5466886657386
31.316555127949513, 90.52500827464945
31.960726979400885, 95.40678768598309
32.562856552689325, 99.74258864666972
33.19040179551053, 104.69758556063417
33.93064747546157, 110.34365538540078
34.805315475506696, 117.23773131078208
35.79352399892869, 124.56253687529762
36.809786985984005, 132.61260861408755
37.93529270608102, 140.61366318359902
39.17823130569789, 148.79656035502458
40.35900877687321, 159.69804662224522
41.54013450086244, 169.33327511991655
42.84661144470468, 179.91291788499228
44.06313214135528, 191.15355797004142
45.25656391699511, 202.4820005000468
46.511887557674825, 216.6591989148876
47.680526996446034, 229.96328538714565
48.8889025503434, 243.5917309687225
50.12787814563502, 260.9107173974436
51.24586704139612, 276.6525153266459
52.388794714380595, 292.75208228109136
54.26610851253053, 323.54005646060193
56.11541617472523, 353.6150826912927
57.978524029011524, 387.65867432034383
60.03068224338432, 426.2694747536518
62.129124813569945, 466.8359494027141
64.21913693654325, 511.26298400954454
66.4357783358324, 564.4607484894502
68.6706714599847, 616.9308259281694
70.80033186910771, 667.501923534733
72.93412375305205, 723.6788940718204
75.54770045928562, 790.949271532663
77.92367657548363, 858.3821598021366
80.61342204431196, 929.6840941725576
83.53762749213769, 1013.0295700662429
86.93591513418795, 1110.5569852687133
89.9367540322083, 1199.1667112388234
93.23872497498641, 1300.0885972007204
96.7029501399203, 1406.6595522949196
100.55154047140465, 1509.7175783367138
104.73085922019779, 1623.6026759204808
107.56749355805721, 1704.2597588962296
110.80955391003879, 1781.7105491293385
114.19772579998113, 1877.7935878550174
117.34060082316361, 1947.3314372714774
120.82601420768721, 2011.3017391156047
124.7320680202745, 2068.9972524335826
128.21926814851182, 2136.9643053037917
132.08392951534233, 2171.7805783920235
136.18052430667998, 2225.071446292766
143.29263283874, 2256.7596229661185
149.18560505489882, 2256.7596229661185
154.59786676769514, 2234.0795327694186
160.6829693112372, 2202.7098174411785
166.30069944642213, 2136.9643053037917
171.4953593046667, 2058.5744459056796
176.25312342904377, 1973.0702582787987
181.56610484085937, 1874.0040153677942
187.35696158100603, 1767.3713592590939
192.67749387019333, 1663.442426117451
197.9811001748836, 1559.3121606133232
202.31177996933798, 1473.559566346305
206.7372890262835, 1377.1364905996597
210.6330966301419, 1297.4648903083526
214.23841307447375, 1228.5917072238738
217.2592232648475, 1172.813302092623
220.60342290110103, 1094.9631552493834
226.0037040584581, 1012.0068570765214
231.2418535790821, 920.340910744561
235.39983245382803, 848.897671691299
240.95816955676287, 756.5667809847787
245.18684089514068, 696.4285212936015
248.96107299063985, 641.0705537981462
253.43779510533594, 584.1823561684135
258.3238237084996, 520.6433937248013
263.75117113124713, 466.8359494027146
268.72198261560186, 416.9015913981234
272.9746114979867, 373.061256221688
278.23741170224207, 329.1435896777374
283.24106323616365, 288.0589118267384
289.0696370010158, 250.57931999374617
294.26796045587145, 221.52758547232526
300.2600641441175, 188.08913491446773
305.9194503847163, 161.64549734451361
311.2230254993175, 139.20051730335655
316.4170191279066, 120.84464915574695
322.7917740222554, 101.77801622096104
329.0855356843564, 85.374047018735
335.3596819119939, 71.75878732584029
340.37837054088743, 62.42219002236688
345.61914809735754, 52.89292225445589
351.08956077123827, 44.72792876377521
357.7076813501217, 36.76861985582001
365.6902574008352, 28.911758505096152
375.1226831436147, 21.701661758102222
384.9618511138615, 16.125931096036872
398.7655520409222, 10.63638052462256
415.7032401282843, 6.239898480529751
431.9833659863349, 3.7278393950691218
444.917975597313, 2.424291939589362
457.94804998084976, 1.602253830495037
469.96158561658626, 1.0827505186698083
479.02581735480373, 0.8013191850653895
491.80131772105807, 0.530675791475041
504.70351143432015, 0.34931803465192296
517.7245504955395, 0.22947501407002727
531.7586516169805, 0.14565825862587922
542.2458510433366, 0.10290430819626811
553.4091311801911, 0.07299391716286406
563.8445602980028, 0.05188204881856237
574.2340558376493, 0.03548772897460335
586.3055294575402, 0.024224898315839526
600.9237075864795, 0.014767771998294618
616.9527748416036, 0.008876191267932905
633.1411312052023, 0.00526013612262693
645.9031872091965, 0.0035260196354864816
658.3641052410858, 0.002325700535179767
671.9200918857149, 0.0015308954227585734
684.8828148881425, 0.0010138396225614272
155 changes: 155 additions & 0 deletions data/spectral_templates/SpinningDustTemplate.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# Frequency in GHz, brightness temperature in Kelvin
0.10041471244271409, 0.012356975889893302
0.10578798676395292, 0.014935449346194772
0.1158259540968171, 0.021075453618111743
0.1287177037310759, 0.030083877125832954
0.14186247951074504, 0.04132724235521
0.15474931905741957, 0.05333106710095464
0.1684480402524148, 0.06751296579251898
0.18450478711319146, 0.08382978043973871
0.19877415646261848, 0.09967981937227778
0.21682244939290674, 0.11852668989432101
0.2340750910987546, 0.13495942793616528
0.24824572909365372, 0.1476317459810139
0.26910020274008645, 0.16356009055375298
0.2951225970321359, 0.1777375370026401
0.32098100453371076, 0.19165610798116567
0.35378116971597495, 0.20153555197486756
0.3892850996951349, 0.21315690467224513
0.42764021001961605, 0.22588464929957108
0.46938383641907294, 0.23478927786846907
0.5122118558758452, 0.24832817450945543
0.5654931160572434, 0.2677746762511004
0.6390243648840861, 0.2978147774184492
0.7191205949299353, 0.34428216548095625
0.7932649496930896, 0.3911349413055374
0.8757818920334994, 0.4495480992915958
0.9580781351594629, 0.5196901055534079
1.0463659107482872, 0.6066114679183094
1.1276847884239445, 0.6931726779566529
1.2234356145419245, 0.8153909983736541
1.3306320711701503, 0.9591585204839284
1.420984688237438, 1.0981477754179576
1.530144271928671, 1.276873282922657
1.6504321602255074, 1.5078267042568427
1.7831393692595128, 1.7566208025043901
1.9201195582953647, 2.0623526109338894
2.0693426607299585, 2.4448133346858754
2.21721828280278, 2.859245529751954
2.411489187346267, 3.389489053044695
2.6010614697238714, 4.033631079691105
2.8219155479790086, 4.818781871928012
3.056434511006667, 5.779064149491646
3.307691673770649, 6.864041130757049
3.600501905207075, 8.20013439890325
3.89972630042082, 9.720839112753307
4.301804466914964, 12.001006175354824
4.6826175794369345, 14.504281335299654
5.148261538635148, 17.59761958259494
5.641412849879336, 21.18621263289871
6.238610811318736, 26.358794185004093
6.979818074434171, 32.66770289908337
7.7702209801974265, 40.879873272767995
8.664528831678087, 49.59835250079278
9.605687032997231, 59.36738520909355
10.587265746133673, 69.43103932062478
11.678857327556276, 79.80005993390651
12.712716965717904, 87.72886192390678
13.5646512503894, 93.32735608188113
14.234943401518716, 96.25918853596674
14.826971166986127, 99.09137454472327
15.507969094978971, 101.80988154957109
16.20676196745765, 103.19697614335585
16.90889651096851, 103.79721550858774
17.700229891518177, 104.40094613208174
18.497806570558087, 104.40094613208174
19.299197310944756, 104.19931342225581
20.227612388969803, 102.89815936887082
21.077635977588088, 101.4170042875495
21.97251426711752, 99.66773391085484
22.810343481848165, 97.75946429833427
23.699820240973338, 95.51770691837507
24.4810577952722, 93.41760981021974
25.20407004925364, 91.36368642216266
25.840766468442514, 89.18234769035203
26.449519712402346, 87.13727525125991
27.0951366953146, 84.97466738145793
27.7103868189982, 82.54595887718872
28.363184323594187, 79.80005993390643
29.079685184777986, 76.84780443210057
29.814286040596386, 73.64796783311377
30.618325893852617, 70.24107165637807
31.548818322225685, 66.21921488924004
32.48056655125885, 61.827123332022545
33.537303770719184, 57.28167973938904
34.51342543114208, 53.17310562888865
35.47368043773546, 49.12124496475649
36.582136204162914, 44.768203249847275
37.69386912090348, 40.25250605589552
39.0012170614598, 35.636871141343214
39.969829381855604, 32.259775892216716
41.18451446072363, 28.6712840204822
42.06718549815908, 25.754351210452445
43.20166490876065, 22.84529832335001
44.329859450949584, 19.953837753301016
45.67704605785128, 17.16087479697517
46.6754050077664, 15.400084547956522
47.655938075094, 13.60787059723916
48.49548667423493, 12.117570209723008
49.596675219985244, 10.66604609203678
50.722868488782, 9.29808435640987
52.00421188588755, 7.98117605748471
53.49557510688043, 6.6164938372856295
55.25899575047067, 5.34902258111534
57.080545545117374, 4.291040779758368
59.10942215279947, 3.3829428301606064
61.15953224022704, 2.590794811726041
63.54441445692573, 1.9348926573263334
65.31238855283361, 1.525418092764222
67.5776380127254, 1.17502196386009
69.80525780517775, 0.9016207995097113
72.04637022632755, 0.697204477567088
74.79355487061069, 0.5067922279357379
77.96901195325535, 0.360632096288679
80.8747485685291, 0.2662261867187886
84.23830930264883, 0.18726117294786948
88.32743054757502, 0.12310041260174816
91.46694955432662, 0.08913538257149939
94.59998300365062, 0.06682718152376854
98.411538427311, 0.047187749669667454
100.04095633425877, 0.04129670659523692
101.99427063642801, 0.03483498774424182
103.23433791754184, 0.030735631563344207
107.03370470042844, 0.022443633579223906
110.52884724656018, 0.016863889223379693
113.90467522374271, 0.012639514130004444
114.96943582800012, 0.011373667320393225
117.67771504789262, 0.009417093100042724
119.65144322625969, 0.007831809958729313
121.00320271064183, 0.007191057939868294
124.45451317158705, 0.005584282949551037
128.08436724934603, 0.004256363966513026
131.891329771115, 0.003259710445844358
132.42778302795682, 0.0030313060366685407
135.78827430025123, 0.002429456815442233
139.3875322915047, 0.0018937459155853526
142.46103536047372, 0.0015138480641246229
145.82191378252213, 0.00120440887383036
149.3427464968076, 0.0009536668348106285
153.67227228144628, 0.0007165743372831229
157.91611803331944, 0.0005540377598734936
161.95907260805242, 0.00043041401315501105
165.89783537025792, 0.00033078790877711956
171.16421149315863, 0.0002473199036048307
176.00118910946466, 0.00018172354139707881
181.4076549699888, 0.00013269734078603083
187.0174211193335, 0.00009829241812262775
192.0237165670921, 0.0000734902054462743
198.6327850152539, 0.00005117731023673903
203.46343392162677, 0.00003919383165570381
209.67771706740217, 0.000028619942116155815
216.93140946381595, 0.00001983177640187965
225.3377193526338, 0.000013418682103331502
233.8369371646755, 0.000008993324494244275
241.66512786972436, 0.000006027409013489761
251.56583836501224, 0.000003879829852925803
6 changes: 5 additions & 1 deletion input/base2018TTTEEE.param
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ data.parameters['sigma8'] = [0, None, None, 0, 1, 'derived']

# Other cosmo parameters (fixed parameters, precision parameters, etc.)

data.cosmo_arguments['sBBN file'] = data.path['cosmo']+'/bbn/sBBN.dat'
data.cosmo_arguments['sBBN file'] = data.path['cosmo']+'/external/bbn/sBBN.dat'
# BBN file path is automatically set to match CLASS version if 'sBBN file' is requested
# You can force the code to use the exact BBN file passed above with flag
#data.custom_bbn_file = True

data.cosmo_arguments['k_pivot'] = 0.05

# The base model features two massless
Expand Down
Loading

0 comments on commit 4f010ad

Please sign in to comment.