Skip to content

Commit

Permalink
Revert "added optional return of theory spectra"
Browse files Browse the repository at this point in the history
This reverts commit 3ae7327.
  • Loading branch information
itrharrison committed Sep 19, 2023
1 parent 3ae7327 commit 8217782
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions act_dr6_lenslike/act_dr6_lenslike.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def load_data(variant, ddir=data_dir,
return d


def generic_lnlike(data_dict,ell_kk,cl_kk,ell_cmb,cl_tt,cl_ee,cl_te,cl_bb,trim_lmax=2998,return_theory=False):
def generic_lnlike(data_dict,ell_kk,cl_kk,ell_cmb,cl_tt,cl_ee,cl_te,cl_bb,trim_lmax = 2998):

cl_kk = standardize(ell_kk,cl_kk,trim_lmax)
cl_tt = standardize(ell_cmb,cl_tt,trim_lmax)
Expand All @@ -344,10 +344,7 @@ def generic_lnlike(data_dict,ell_kk,cl_kk,ell_cmb,cl_tt,cl_ee,cl_te,cl_bb,trim_l
bclkk = np.append(bclkk, d['binmat_planck'] @ clkk_planck)
delta = d['data_binned_clkk'] - bclkk
lnlike = -0.5 * np.dot(delta,np.dot(cinv,delta))
if return_theory:
lnlike, bclkk
else:
return lnlike
return lnlike


# =================
Expand Down

0 comments on commit 8217782

Please sign in to comment.