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

Migrate box filtering to use MOCpy #428

Merged
merged 11 commits into from
Nov 22, 2024
Merged

Conversation

camposandro
Copy link
Contributor

@camposandro camposandro commented Nov 19, 2024

Migrate our custom box filtering to the MOCpy's from_zone implementation, enabling the removal of several healpy methods such as query_polygon, query_strip and ring2nest. This change is pending new releases of cdshealpix and mocpy. Closes #401.

  • My PR includes a link to the issue that I am addressing

Code Quality

  • I have read the Contribution Guide
  • My code follows the code style of this project
  • My code builds (or compiles) cleanly without any errors or warnings
  • My code contains relevant comments and necessary documentation

@camposandro camposandro marked this pull request as ready for review November 22, 2024 20:20
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.89%. Comparing base (f495c43) to head (5272452).
Report is 3 commits behind head on margin.

Additional details and impacted files
@@            Coverage Diff             @@
##           margin     #428      +/-   ##
==========================================
- Coverage   92.96%   92.89%   -0.07%     
==========================================
  Files          46       46              
  Lines        2075     2027      -48     
==========================================
- Hits         1929     1883      -46     
+ Misses        146      144       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@camposandro camposandro merged commit e4ae032 into margin Nov 22, 2024
9 checks passed
@camposandro camposandro deleted the issue/401/migrate-box-filter branch November 22, 2024 20:42
delucchi-cmu added a commit that referenced this pull request Nov 26, 2024
* Remove margin fine filtering.

* Remove unused unseen.

* Remove margin fine filtering. (#421)

* Remove margin fine filtering.

* Remove unused unseen.

* Use cdshealpix for margin pixel finding.

* Unused import.

* add color_by_order option and plot on existing axes

* reset matplotlib after tests

* pylint

* Migrate ang2vec (#426)

* Use astropy for ang2vec conversion

* Allow for kwargs in ang2vec

* use mindist instead of resol for margin filter

* Replace healpy in healpix_shim pixel math operations

* isort

* support np arrays

* use order instead of nside

* remove unused variable

* Return int64 from radec2pix (#432)

* Migrate box filtering to use MOCpy (#428)

* Use mocpy in box filtering

* Update tests

* Ensure moc is correct in box filter test

* Remove unused healpy methods

* Pin mocpy

* Remove healpy references. (#433)

* Address merge conflicts

---------

Co-authored-by: Sean McGuire <123987820+smcguire-cmu@users.noreply.github.com>
Co-authored-by: Sean McGuire <seanmcgu@andrew.cmu.edu>
Co-authored-by: Sandro Campos <scampos@andrew.cmu.edu>
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