Skip to content

Commit 8a0a5e3

Browse files
authored
Better fix to CAR pixel wrapping issue (#205)
1 parent 0c4a3d6 commit 8a0a5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymaster/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def __init__(self, wcs, axes):
337337
raise ValueError("The colatitude map edges are "
338338
"outside the sphere")
339339

340-
if np.fabs(nx*d_ra) > 360+0.1*d_ra:
340+
if np.fabs(nx*d_ra) > 360+0.1*np.fabs(d_ra):
341341
raise ValueError("Seems like you're wrapping the "
342342
"sphere more than once")
343343

0 commit comments

Comments
 (0)