Skip to content

Commit d000fbc

Browse files
cailmdaleyclaude
andcommitted
fix: use dynamic shape for cl_noise array in pseudo-Cl calculation
cl_noise was hardcoded to (4, n_ell_bins) which breaks for linear binning where the number of bins differs from n_ell_bins. Use zeros_like(cl_shear) to match the actual output shape. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 089a40d commit d000fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sp_validation/cosmo_val.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@ def calculate_pseudo_cl_map(self, ver, nside, out_path):
29262926

29272927
ell_eff, cl_shear, wsp = self.get_pseudo_cls_map(shear_map)
29282928

2929-
cl_noise = np.zeros((4, self.n_ell_bins))
2929+
cl_noise = np.zeros_like(cl_shear)
29302930

29312931
for i in range(self.nrandom_cell):
29322932

0 commit comments

Comments
 (0)