Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add baseline foreground model. #10

Merged
merged 44 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9a10e38
Added cuts corresponding to unblinding plan.
HTJense Oct 17, 2023
169c372
Updated pa4_f220 polarizations
HTJense Oct 17, 2023
bf0e6af
Updated E modes pa5/pa6
HTJense Oct 17, 2023
99c3409
yamllint
HTJense Oct 17, 2023
f9cea0f
yamllint
HTJense Oct 17, 2023
31d97c0
Cleanup for pa4 pol tag.
HTJense Oct 17, 2023
8eddb4e
Cleanup for pa4 pol tag.
HTJense Oct 17, 2023
0a3a485
New ell cuts.
HTJense Feb 5, 2024
76d14a5
Added varying systematics templates and sim dust priors.
HTJense Feb 5, 2024
bd0d6cc
Sorted files into directories, and updated dataset name.
HTJense Feb 5, 2024
17f4df5
Updated readme.
HTJense Feb 5, 2024
89849ac
Updated sim systematics and priors.
HTJense Feb 6, 2024
f4307c7
Updated sims foreground parameters.
HTJense Feb 6, 2024
e601f37
Set data file to simu with syst.
HTJense Feb 6, 2024
213c069
Widened pa4_f220 bishift because of wide prior.
HTJense Feb 6, 2024
02f8940
Tweaked prior values.
HTJense Feb 6, 2024
658f150
Tightened beta_s constraint.
HTJense Feb 6, 2024
bae7d40
Update for mflike changes.
HTJense Feb 6, 2024
73b3022
More systematics changes.
HTJense Feb 6, 2024
61bf699
Changed bandint shift label convention.
HTJense Feb 6, 2024
e21a851
Systematics changes for sims.
HTJense Feb 9, 2024
3c9d50f
Make sure calG_all is varied.
HTJense Feb 9, 2024
0296508
Returned calG_all to sys_fixed.
HTJense Feb 9, 2024
edfa8f0
Returned calG_all to sys_fixed.
HTJense Feb 9, 2024
89624c9
Fixed issue in sys priors.
HTJense Feb 9, 2024
906c7a2
Typo.
HTJense Feb 9, 2024
1158fa8
Better proposals for bandint shifts.
HTJense Feb 12, 2024
0f68807
Better proposals for bandint shifts.
HTJense Feb 12, 2024
1cba72e
Much tighter proposals for nuisance.
HTJense Feb 12, 2024
fc75195
Added cosmology reference dists.
HTJense Feb 12, 2024
bce169c
Added h.
HTJense Feb 12, 2024
56f5f97
Set all references to prior values.
HTJense Feb 12, 2024
bf9e749
Added refs to camb cosmology params.
HTJense Feb 13, 2024
ca307bd
Fixed beta parameters.
HTJense Feb 15, 2024
d4bd9f6
Added Neff extension.
HTJense Feb 16, 2024
c48c286
Label should be called latex.
HTJense Feb 16, 2024
ffa7b96
Added tau prior for sims.
HTJense Feb 22, 2024
ab7c2ce
Reinstate calg_all
HTJense Feb 22, 2024
e5b4a84
Added derived flag.
HTJense Feb 27, 2024
e18caf9
Update.
HTJense Apr 9, 2024
0c38c88
Added rdrag.
HTJense Apr 9, 2024
85c3c11
Formatting issues in camb settings.
HTJense Apr 9, 2024
3d19fb4
Merge branch 'main' into simruns
HTJense Apr 9, 2024
a290f45
Added baseline foreground model.
HTJense Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ Parameters and run settings for ACT DR6 using cobaya.
All yaml files are top-level. To perform a run with cobaya, you can invoke

```
[python -m] cobaya run run_<file>.yaml
[python -m] cobaya run runs/<file>.yaml
```

Where `run_<file>.yaml` is any one of the run files contained here.
Where `runs/<file>.yaml` is any one of the run files contained in the `runs/` directory.

If you want to add new files, please consider the following style guides:

- Run files start with `run_`.
- Run files go into `runs/`.

- Theory code files start with `theory_`.
- Theory code files go into `theories/`.

- Likelihood files start with `likelihood_`.
- Likelihood files go into `likelihoods/`.

- Parameter files start with `params_`. You can include priors on your parameters, but please only use physical bounds. External priors (i.e. priors from external analyses) are to be included in prior files. It is recommended to put references on parameters.
- Parameter files go into `params/`. You can include priors on your parameters, but please only use physical bounds. External priors (i.e. priors from external analyses) are to be included in prior files. It is recommended to put references on parameters.

- Prior files start with `priors_`. These contain external priors only.
- Prior files go into `priors/`. These contain external priors only.

## Notes on existing files

`theory_camb_high_accuracy.yaml` uses the high accuracy settings for CAMB at least as accurate as in [Hill et al. (2020)](https://arxiv.org/abs/2109.04451). Note that we intend to use `cosmorec` instead of `recfast` as main recombination code - see the section _Installing Cosmorec_ below for instructions.
`theories/camb_high_accuracy.yaml` uses the high accuracy settings for CAMB at least as accurate as in [Hill et al. (2020)](https://arxiv.org/abs/2109.04451). Note that we intend to use `cosmorec` instead of `recfast` as main recombination code - see the section _Installing Cosmorec_ below for instructions.

`theory_cosmopower.yaml` uses [Cosmopower](https://arxiv.org/abs/2106.03846) as implemented in the _Simons Observatory_ package [SOLikeT](https://github.com/simonsobs/SOLikeT). See the section _Setting up CosmoPower_ on instructions of setting this up.
`theories/cosmopower.yaml` uses [Cosmopower](https://arxiv.org/abs/2106.03846) as implemented in the _Simons Observatory_ package [SOLikeT](https://github.com/simonsobs/SOLikeT). See the section _Setting up CosmoPower_ on instructions of setting this up.

`params_foreground_Choi2020.yaml` uses the foreground model implemented in MFLike based on the [Choi et al. (2020)](https://arxiv.org/abs/2007.07289) foreground model.
`params/foregrounds_Choi2020.yaml` uses the foreground model implemented in MFLike based on the [Choi et al. (2020)](https://arxiv.org/abs/2007.07289) foreground model. The corresponding foreground priors are found in `priors/foregrounds_Choi2020.yaml`.

`params_foreground_sims.yaml` uses the same foreground model as above, but allows parameters to go outside physical constraints (i.e. negative for values that are expected to be non-negative).
`params_foreground_sims.yaml` uses a model similar to the expected the DR6 foreground model, but allows parameters to go outside physical constraints (i.e. negative for values that are expected to be non-negative). **UPDATE FEB 2024** We will loosen the restriction that the CIB spectral indices are equal (e.g. we now let `beta_c` and `beta_p` vary independently), and we add a varying spectral index for the radio sources `beta_r`.

`params_DR4_baseline.yaml` is a simple set of fixed parameters that can be used to evaluate your model at the *ACT DR4+WMAP baseline* parameters found in Choi et al. and Aiola et al.

Expand Down Expand Up @@ -101,7 +101,7 @@ If you intend to use this code with your own emulators, check out the [SOLikeT d

### CosmoPower: 'KeyError: _manual' bug

**This bug has been fixed as of cobaya verison 3.3.**
**This bug has been fixed as of cobaya verison 3.3. Consider updating your cobaya package.**

(TL;DR: see [this](https://github.com/CobayaSampler/cobaya/pull/275) pull request if you get this error).

Expand Down
5 changes: 0 additions & 5 deletions likelihood_act_dr6.yaml

This file was deleted.

237 changes: 237 additions & 0 deletions likelihoods/act_dr6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
act_dr6_mflike.ACTDR6MFLike:
data_folder: ACTDR6MFLike/v0.2
input_file: dr6_ng_simu_sacc.fits

defaults:
symmetrize: false
polarizations: [TT, TE, ET, EE]
polarizations_auto: &polarizations_auto [TT, TE, EE]
lmax: &lmax 8500
scales:
TT: [2, *lmax]
TE: [2, *lmax]
ET: [2, *lmax]
EE: [2, *lmax]

foregrounds:
normalisation:
nu_0: 150.0
ell_0: 3000
T_CMB: 2.725

components:
tt:
- kSZ
- tSZ_and_CIB
- cibp
- dust
- radio
te:
- radio
- dust
ee:
- radio
- dust

data:
experiments:
- dr6_pa4_f220
- dr6_pa5_f090
- dr6_pa5_f150
- dr6_pa6_f090
- dr6_pa6_f150

spectra:
- experiments: [dr6_pa4_f220, dr6_pa4_f220]
polarizations: &pol_pa4_f220 [TT]
scales: &scales_pa4
TT: [1000, *lmax]
- experiments: [dr6_pa4_f220, dr6_pa5_f090]
polarizations: *pol_pa4_f220
scales: *scales_pa4
- experiments: [dr6_pa4_f220, dr6_pa5_f150]
polarizations: *pol_pa4_f220
scales: *scales_pa4
- experiments: [dr6_pa4_f220, dr6_pa6_f090]
polarizations: *pol_pa4_f220
scales: *scales_pa4
- experiments: [dr6_pa4_f220, dr6_pa6_f150]
polarizations: *pol_pa4_f220
scales: *scales_pa4

- experiments: [dr6_pa5_f090, dr6_pa5_f090]
polarizations: *polarizations_auto
scales:
TT: [1000, *lmax]
TE: [1000, *lmax]
EE: [500, *lmax]
- experiments: [dr6_pa5_f090, dr6_pa5_f150]
scales:
TT: [1000, *lmax]
TE: [1000, *lmax]
ET: [800, *lmax]
EE: [500, *lmax]
- experiments: [dr6_pa5_f090, dr6_pa6_f090]
scales:
TT: [1000, *lmax]
TE: [1000, *lmax]
ET: [1000, *lmax]
EE: [500, *lmax]
- experiments: [dr6_pa5_f090, dr6_pa6_f150]
scales:
TT: [1000, *lmax]
TE: [1000, *lmax]
ET: [600, *lmax]
EE: [500, *lmax]

- experiments: [dr6_pa5_f150, dr6_pa5_f150]
polarizations: *polarizations_auto
scales:
TT: [800, *lmax]
TE: [800, *lmax]
EE: [500, *lmax]
- experiments: [dr6_pa5_f150, dr6_pa6_f090]
scales:
TT: [1000, *lmax]
TE: [800, *lmax]
ET: [1000, *lmax]
EE: [500, *lmax]
- experiments: [dr6_pa5_f150, dr6_pa6_f150]
scales:
TT: [800, *lmax]
TE: [800, *lmax]
ET: [600, *lmax]
EE: [500, *lmax]

- experiments: [dr6_pa6_f090, dr6_pa6_f090]
polarizations: *polarizations_auto
scales:
TT: [1000, *lmax]
TE: [1000, *lmax]
EE: [500, *lmax]
- experiments: [dr6_pa6_f090, dr6_pa6_f150]
scales:
TT: [1000, *lmax]
TE: [1000, *lmax]
ET: [600, *lmax]
EE: [500, *lmax]

- experiments: [dr6_pa6_f150, dr6_pa6_f150]
polarizations: *polarizations_auto
scales:
TT: [600, *lmax]
TE: [600, *lmax]
EE: [500, *lmax]

params:
a_tSZ:
value: 3.30
latex: a_\mathrm{tSZ}
a_kSZ:
value: 1.60
latex: a_\mathrm{kSZ}
a_p:
value: 6.90
latex: a_p
beta_p:
value: 2.08
latex: \beta_p
a_c:
value: 4.90
latex: a_c
beta_c:
value: 2.20
latex: \beta_c
a_s:
value: 3.10
latex: a_s
beta_s:
value: -2.5
latex: \beta_s
a_gtt:
value: 8.70
latex: a_\mathrm{dust}^\mathrm{TT}
a_gte:
value: 0.0
latex: a_\mathrm{dust}^\mathrm{TE}
a_gee:
value: 0.0
latex: a_\mathrm{dust}^\mathrm{EE}
a_psee:
value: 0.0
latex: a_\mathrm{ps}^\mathrm{EE}
a_pste:
value: 0.0
latex: a_\mathrm{ps}^\mathrm{TE}
xi:
value: 0.10
latex: \xi
T_d:
value: 9.60
latex: T_d
alpha_s:
value: 1.0
latex: \alpha_s
T_effd:
value: 19.6
latex: T_{\mathrm{dust},\mathrm{eff}}
beta_d:
value: 1.5
latex: \beta_\mathrm{dust}
alpha_dT:
value: -0.6
latex: \alpha_{\mathrm{dust},T}
alpha_dE:
value: -0.4
latex: \alpha_{\mathrm{dust},E}
alpha_p:
value: 1.0
latex: \alpha_p

cal_dr6_pa4_f220:
value: 1
latex: \mathrm{c}_{\rm pa4}^{\rm f220}
cal_dr6_pa5_f090:
value: 1
latex: \mathrm{c}_{\rm pa5}^{\rm f090}
cal_dr6_pa5_f150:
value: 1
latex: \mathrm{c}_{\rm pa5}^{\rm f150}
cal_dr6_pa6_f090:
value: 1
latex: \mathrm{c}_{\rm pa6}^{\rm f090}
cal_dr6_pa6_f150:
value: 1
latex: \mathrm{c}_{\rm pa6}^{\rm f150}

calE_dr6_pa4_f220:
value: 1
latex: \mathrm{p}_{\rm pa4}^{\rm f220}
calE_dr6_pa5_f090:
value: 1
latex: \mathrm{p}_{\rm pa5}^{\rm f090}
calE_dr6_pa5_f150:
value: 1
latex: \mathrm{p}_{\rm pa5}^{\rm f150}
calE_dr6_pa6_f090:
value: 1
latex: \mathrm{p}_{\rm pa6}^{\rm f090}
calE_dr6_pa6_f150:
value: 1
latex: \mathrm{p}_{\rm pa6}^{\rm f150}

bandint_shift_dr6_pa4_f220:
value: 0
latex: \Delta_{\rm band, pa4}^{\rm f220}
bandint_shift_dr6_pa5_f090:
value: 0
latex: \Delta_{\rm band, pa5}^{\rm f090}
bandint_shift_dr6_pa5_f150:
value: 0
latex: \Delta_{\rm band, pa5}^{\rm f150}
bandint_shift_dr6_pa6_f090:
value: 0
latex: \Delta_{\rm band, pa6}^{\rm f090}
bandint_shift_dr6_pa6_f150:
value: 0
latex: \Delta_{\rm band, pa6}^{\rm f150}
Loading
Loading