Skip to content

Commit

Permalink
Merge pull request #87 from joezuntz/act-dr6-lens
Browse files Browse the repository at this point in the history
Act DR6 lensing likelihood
  • Loading branch information
joezuntz authored Jul 17, 2023
2 parents 9b3ddac + 13b596e commit 6f9bdfc
Show file tree
Hide file tree
Showing 9 changed files with 686 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,26 @@ jobs:
cosmosis examples/des-y3.ini -v halo_model_parameters.logT_AGN=8.2 -p camb.halofit_version=mead2020_feedback | tee output/des-y3-mead.log
grep -e 'Likelihood = 6049.94' -e 'Likelihood = 6049.00' output/des-y3-mead.log
- uses: actions/cache@v2
name: ACT Data Cache
id: cache-act
with:
path: likelihood/act-dr6-lens/data/v1.1
key: ${{ runner.os }}-act-dr6-v1.1

- name: Download ACT DR6 Lensing Data
if: steps.cache-act.outputs.cache-hit != 'true'
run: |
cd likelihood/act-dr6-lens/
./get-act-data.sh
- name: ACT DR6 Lensing
shell: bash -l {0}
run: |
source cosmosis-configure
cosmosis examples/act-dr6-lens.ini | tee output/act-dr6.log
grep -e 'Likelihood = -9.89' -e 'Likelihood = -9.90' output/act-dr6.log
- name: DES Y3 6x2pt
shell: bash -l {0}
run: |
Expand Down
3 changes: 3 additions & 0 deletions examples/act-dr6-lens-priors.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[cosmological_parameters]
ombh2 = normal 0.02233 0.00036
n_s = normal 0.96 0.02
24 changes: 24 additions & 0 deletions examples/act-dr6-lens-values.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

[cosmological_parameters]
omch2 = 0.08 0.12 0.16
ombh2 = 0.01 0.02233 0.03
log1e10As = 2.9 3.0448 3.2
n_s = 0.86 0.96 1.06
cosmomc_theta = 0.009 0.0104 0.012

omega_k = 0.0 ;spatial curvature

;neutrinos
mnu = 0.06
nnu = 3.046
num_massive_neutrinos = 3

;helium
yhe = 0.245341 ;helium mass fraction

;reionization
tau = 0.0543 ;reionization optical depth

[halo_model_parameters]
A = 3.13
eta = 0.603
58 changes: 58 additions & 0 deletions examples/act-dr6-lens.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[runtime]
sampler = test
root = ${PWD}
resume = T

[test]
save_dir=output/act_dr6_lens
fatal_errors=T

[nautilus]
n_live = 1500
verbose = T

[emcee]
walkers = 64
samples = 1000
nsteps = 5


[pipeline]
; these names refer to sections later in the file:
modules = consistency camb act_dr6_lens
values = examples/act-dr6-lens-values.ini
priors = examples/act-dr6-lens-priors.ini
quiet=F
debug=F
timing=F
extra_output=cosmological_parameters/sigma_8 cosmological_parameters/omega_m

[act_dr6_lens]
file = ./likelihood/act-dr6-lens/act_dr6_lenslike_interface.py
like_corrections = T
variant = actplanck_baseline

[output]
filename = output/act-dr6-lens.txt

; 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
cosmomc_theta = T

[camb]
file = boltzmann/camb/camb_interface.py
mode = cmb
lmax = 4000 ;max ell to use for cmb calculation
lens_margin = 1250
lens_potential_accuracy = 4
feedback=0 ;amount of output to print
AccuracyBoost=1.0 ;CAMB accuracy boost parameter
lSampleBoost = 1.0
lAccuracyBoost = 1.0
do_tensors = T ;include tensor modes
do_lensing = T ;lensing is required w/ Planck data
NonLinear = lens
theta_H0_range = "20 100"
halofit_version = takahashi
1 change: 1 addition & 0 deletions likelihood/act-dr6-lens/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data/
24 changes: 24 additions & 0 deletions likelihood/act-dr6-lens/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
BSD 2-Clause License

Copyright (c) 2023, Members of the Atacama Cosmology Telescope Collaboration

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading

0 comments on commit 6f9bdfc

Please sign in to comment.