Skip to content

Commit

Permalink
Merge pull request #51 from joezuntz/planck-lite-example
Browse files Browse the repository at this point in the history
Add planck lite example
  • Loading branch information
joezuntz authored Jan 29, 2023
2 parents 2645f96 + dc854ce commit 45db321
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
42 changes: 42 additions & 0 deletions examples/planck_lite.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[runtime]
sampler = test
root = ${PWD}

[test]
save_dir=output/planck
fatal_errors=T


[pipeline]
; these names refer to sections later in the file:
modules = consistency camb planck
values = examples/planck_lite_values.ini
quiet=F
debug=T
timing=T


[planck]
file = likelihood/planck_py/planck_py_interface.py
use_low_ell_bins = T
spectra = TTTEEE
year = 2018


; The consistency module translates between our chosen parameterization
; and any other that modules in the pipeline may want (e.g. camb)
[consistency]
file = ./utility/consistency/consistency_interface.py


[camb]
file = boltzmann/camb/camb_interface.py
mode = cmb
lmax = 2800 ;max ell to use for cmb calculation
feedback=2 ;amount of output to print
AccuracyBoost=1.1 ;CAMB accuracy boost parameter
do_tensors = True ;include tensor modes
do_lensing = True ;lensing is required w/ Planck data
NonLinear = lens
accurate_massive_neutrino_transfers = F
halofit_version = takahashi
30 changes: 30 additions & 0 deletions examples/planck_lite_values.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[cosmological_parameters]
h0 = 0.6726 ;H0 (km/s/Mpc)/100.0km/s/Mpc
omega_m = 0.3141 ;density fraction for matter today
omega_b = 0.04 ;density fraction for baryons today
omega_k = 0.0 ;spatial curvature

;neutrinos
mnu = 0.06
nnu = 3.046
num_massive_neutrinos = 1


;helium
yhe = 0.245341 ;helium mass fraction

;reionization
tau = 0.08 ;reionization optical depth

;inflation Parameters
n_s = 0.96 ;scalar spectral index
A_s = 2.1e-9 ;scalar spectrum primordial amplitude
k_s = 0.05 ;Power spectrum pivot scale
n_run = 0.0 ;running of scalar spectrum
r_t = 0.0 ;tensor to scalar ratio
n_t = 0.0 ;tensor spectral index

;dark energy equation of state
w = -1.0 ;equation of state of dark energy
wa = 0.0 ;equation of state of dark energy (redshift dependency)

0 comments on commit 45db321

Please sign in to comment.