Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
beringueb committed Feb 19, 2024
1 parent a709961 commit 9d985a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mflike/mflike.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _get_power_spectra(self, cl, **params_values_nocosmo):
w = m["bpw"].weight.T
dls_obs = DlsObs[p, m["t1"], m["t2"]]
if m["hasYX_xsp"]: dls_obs = DlsObs[p, m["t2"], m["t1"]]
clt = w @ DlsObs[p, m["t1"], m["t2"]]
clt = w @ dls_obs
ps_vec[i] = clt

return ps_vec
10 changes: 5 additions & 5 deletions mflike/theoryforge.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,16 @@ def get_modified_theory(self, Dls, **params):
for m in self.spec_meta:
p = m["pol"]
if p in ["tt", "ee", "bb"]:
dls_dict[p, m["t1"], m["t2"], m["hasYX_xsp"]] = cmbfg_dict[p, m["t1"], m["t2"]]
dls_dict[p, m["t1"], m["t2"]] = cmbfg_dict[p, m["t1"], m["t2"]]
else: # ['te','tb','eb']
if m["hasYX_xsp"]: # not symmetrizing
dls_dict[p, m["t2"], m["t1"], m["hasYX_xsp"]] = cmbfg_dict[p, m["t2"], m["t1"]]
dls_dict[p, m["t2"], m["t1"]] = cmbfg_dict[p, m["t2"], m["t1"]]
else:
dls_dict[p, m["t1"], m["t2"], m["hasYX_xsp"]] = cmbfg_dict[p, m["t1"], m["t2"]]
dls_dict[p, m["t1"], m["t2"]] = cmbfg_dict[p, m["t1"], m["t2"]]

if self.defaults_cuts["symmetrize"]: # we average TE and ET (as we do for data)
dls_dict[p, m["t1"], m["t2"], m["hasYX_xsp"]] += cmbfg_dict[p, m["t2"], m["t1"]]
dls_dict[p, m["t1"], m["t2"], m["hasYX_xsp"]] *= 0.5
dls_dict[p, m["t1"], m["t2"]] += cmbfg_dict[p, m["t2"], m["t1"]]
dls_dict[p, m["t1"], m["t2"]] *= 0.5

return dls_dict

Expand Down

0 comments on commit 9d985a8

Please sign in to comment.