Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tolerance for sphere wrapping in CAR #204

Merged
merged 4 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading