Skip to content

Commit

Permalink
Decouple again calibration parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalloni committed Aug 8, 2024
1 parent ec27371 commit 4b176d4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mflike/EE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ defaults:
scales:
EE: [30, 9000]

params: !defaults [calib_common, calib_E, params_common, params_TT, params_TE, params_EE]

supported_params: !defaults [calib_common, calib_E, params_common, params_EE]
2 changes: 2 additions & 0 deletions mflike/TE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ defaults:
# instead of TE and ET separately.
symmetrize: false

params: !defaults [calib_common, calib_T, calib_E, params_common, params_TT, params_TE, params_EE]

supported_params: !defaults [calib_common, calib_T, calib_E, params_common, params_TE]
2 changes: 2 additions & 0 deletions mflike/TT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ defaults:
scales:
TT: [30, 9000]

params: !defaults [calib_common, calib_T, params_common, params_TT, params_TE, params_EE]

supported_params: !defaults [calib_common, calib_T, params_common, params_TT]
2 changes: 2 additions & 0 deletions mflike/TTTEEE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ defaults:
# instead of TE and ET separately.
symmetrize: false

params: !defaults [calib_common, calib_T, calib_E, params_common, params_TT, params_TE, params_EE]

supported_params: !defaults [calib_common, calib_T, calib_E, params_common, params_TT, params_TE, params_EE]
1 change: 0 additions & 1 deletion mflike/_MFLike.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ data:
systematics_template:
# rootname: "test_template"

params: !defaults [calib_common, calib_T, calib_E, params_common, params_TT, params_TE, params_EE]
3 changes: 3 additions & 0 deletions mflike/tests/test_mflike.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def test_mflike(self):

def test_cobaya_TT(self):
nuis_params = common_nuis_params | TT_nuis_params | TE_nuis_params | EE_nuis_params
nuis_params = {k: v for k, v in nuis_params.items() if "calE" not in k}
info = {
"likelihood": {
"mflike.TT": {
Expand Down Expand Up @@ -160,6 +161,7 @@ def test_cobaya_TE(self):

def test_cobaya_EE(self):
nuis_params = common_nuis_params | TT_nuis_params | TE_nuis_params | EE_nuis_params
nuis_params = {k: v for k, v in nuis_params.items() if "calT" not in k}
info = {
"likelihood": {
"mflike.EE": {
Expand All @@ -171,6 +173,7 @@ def test_cobaya_EE(self):
"mflike.BandpowerForeground": {}},
"params": cosmo_params | nuis_params,
"packages_path": packages_path,
"debug": True,
}

model = get_model(info)
Expand Down

0 comments on commit 4b176d4

Please sign in to comment.