Skip to content

Commit

Permalink
Added tolerance for sphere wrapping in CAR (#204)
Browse files Browse the repository at this point in the history
* added tolerance for sphere wrapping in CAR
  • Loading branch information
damonge authored Aug 1, 2024
1 parent 0769c82 commit 30172cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ jobs:
- name: Build NaMaster (mac)
if: matrix.label == 'osx-64'
run: |
# After migrating to Xcode 15.4, a bunch of things broke, for whatever reason...
sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
# Without the prefixes, it won't compile on mac
CC=gcc-13 LDFLAGS=-L/opt/homebrew/lib CPPFLAGS=-I/opt/homebrew/include python -m pip install .
CC=gcc-14 LDFLAGS=-L/opt/homebrew/lib CPPFLAGS=-I/opt/homebrew/include python -m pip install .
- name: C tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion pymaster/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def __init__(self, wcs, axes):
raise ValueError("The colatitude map edges are "
"outside the sphere")

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

Expand Down

0 comments on commit 30172cd

Please sign in to comment.