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

Ensure correct roi precision with numpy 2 #191

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Dec 2, 2024

Numpy 2.0 introduces breaking changes around implicit dtype conversions, causing a loss of precision when computing the roi for inputs with small resolution values.
See the original issue for further details and minimal reproducible example, which uses datacube.utils.geometry but produces the same results with the corresponding odc-geo methods.

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.44%. Comparing base (210ae22) to head (5da3ea1).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #191   +/-   ##
========================================
  Coverage    95.44%   95.44%           
========================================
  Files           31       31           
  Lines         5534     5534           
========================================
  Hits          5282     5282           
  Misses         252      252           

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

Copy link

github-actions bot commented Dec 2, 2024

@github-actions github-actions bot temporarily deployed to pull request December 2, 2024 00:35 Inactive
Copy link
Member

@Kirill888 Kirill888 left a comment

Choose a reason for hiding this comment

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

Thanks

@Ariana-B Ariana-B merged commit 796a99c into develop Dec 4, 2024
20 checks passed
@Ariana-B Ariana-B deleted the fix_boundary_scalar branch December 4, 2024 00:28
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