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

Healpix maps with nside > 8192 #120

Merged
merged 15 commits into from
Sep 26, 2023
Merged

Healpix maps with nside > 8192 #120

merged 15 commits into from
Sep 26, 2023

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Sep 8, 2023

This PR ensures that maps are consistently indexed using 64-bit integers everywhere, to avoid truncation e.g. when indexing maps with high nside (>8192). The healpix C bindings are moved out of the public API, and the header is modified to use the ssize_t integer type for all 64-bit functions.

Fixes #119

@arahlin arahlin self-assigned this Sep 8, 2023
@arahlin arahlin added the bug label Sep 8, 2023
@arahlin arahlin marked this pull request as draft September 8, 2023 23:29
@arahlin arahlin marked this pull request as ready for review September 20, 2023 08:36
Copy link
Member

@nwhitehorn nwhitehorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good -- thanks! No further comments here.

@arahlin arahlin merged commit 348729a into master Sep 26, 2023
@arahlin arahlin deleted the healpix64 branch September 26, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integer overflow in maps.HealpixSkyMap.angle_to_pixel for nside = 16384
2 participants