Skip to content

Commit

Permalink
Nf subtraction bug (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonge authored Jul 17, 2024
1 parent 39a9894 commit 76c3d41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymaster/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,9 @@ def compute_coupled_cell(f1, f2):

cls = np.array([[hp.alm2cl(a1, a2, lmax=lmax)
for a2 in alm2] for a1 in alm1])
for i in range(len(alm1)):
cls[i, i, :] -= Nf
if Nf != 0:
for i in range(len(alm1)):
cls[i, i, :] -= Nf
cls = cls.reshape([ncl, lmax+1])
return cls

Expand Down

0 comments on commit 76c3d41

Please sign in to comment.