Skip to content

Commit 30172cd

Browse files
authored
Added tolerance for sphere wrapping in CAR (#204)
* added tolerance for sphere wrapping in CAR
1 parent 0769c82 commit 30172cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ jobs:
111111
- name: Build NaMaster (mac)
112112
if: matrix.label == 'osx-64'
113113
run: |
114+
# After migrating to Xcode 15.4, a bunch of things broke, for whatever reason...
115+
sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
114116
# Without the prefixes, it won't compile on mac
115-
CC=gcc-13 LDFLAGS=-L/opt/homebrew/lib CPPFLAGS=-I/opt/homebrew/include python -m pip install .
117+
CC=gcc-14 LDFLAGS=-L/opt/homebrew/lib CPPFLAGS=-I/opt/homebrew/include python -m pip install .
116118
117119
- name: C tests
118120
run: |

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

0 commit comments

Comments
 (0)