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

Add support for pixel ranges and composable geometries. #151

Merged
merged 32 commits into from
Jan 25, 2024
Merged

Conversation

erykoff
Copy link
Collaborator

@erykoff erykoff commented Jan 20, 2024

This completely refactors the packed boolean arrays to be more efficient, and to work with arbitrary slices. This enables setting of giant pixel ranges (large area masks) with minimal memory overhead.

@beckermr beckermr self-assigned this Jan 21, 2024
Copy link
Collaborator

@beckermr beckermr left a comment

Choose a reason for hiding this comment

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

I left a few comments. Congrats on the test suite. It was painful to read and no doubt it was painful to write!

tests/test_pixel_ranges.py Show resolved Hide resolved
healsparse/packedBoolArray.py Show resolved Hide resolved
healsparse/packedBoolArray.py Show resolved Hide resolved
healsparse/packedBoolArray.py Outdated Show resolved Hide resolved
healsparse/packedBoolArray.py Show resolved Hide resolved
healsparse/packedBoolArray.py Outdated Show resolved Hide resolved
tests/test_packedboolarray.py Show resolved Hide resolved
tests/test_packedboolarray.py Show resolved Hide resolved
@erykoff erykoff merged commit 17457af into main Jan 25, 2024
6 checks passed
@erykoff erykoff deleted the pixel_ranges branch January 25, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants