Skip to content

Commit b41669f

Browse files
committed
working
1 parent 74c5b11 commit b41669f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

heracles/twopoint.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def invert_mixing_matrix(
465465
return inv_M
466466

467467

468-
def apply_mixing_matrix(d, M, lmax=None):
468+
def apply_mixing_matrix(d, M):
469469
"""
470470
Apply mixing matrix to the data Cl.
471471
Args:
@@ -479,7 +479,6 @@ def apply_mixing_matrix(d, M, lmax=None):
479479
if lmax is None:
480480
*_, lmax = d[key].shape
481481
dtype = d[key].array.dtype
482-
ell_mask = M[key].ell
483482
s1, s2 = d[key].spin
484483
_d = np.atleast_2d(d[key].array)
485484
_M = M[key].array
@@ -495,7 +494,5 @@ def apply_mixing_matrix(d, M, lmax=None):
495494
_corr_d.append(_M @ cl)
496495
_corr_d = np.squeeze(_corr_d)
497496
_corr_d = np.array(list(_corr_d), dtype=dtype)
498-
corr_d[key] = replace(d[key], array=_corr_d, ell=ell_mask)
499-
# truncate
500-
corr_d = binned(corr_d, np.arange(0, lmax + 1))
497+
corr_d[key] = replace(d[key], array=_corr_d)
501498
return corr_d

0 commit comments

Comments
 (0)