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

Numpy 2.0 compliance #85

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Numpy 2.0 compliance #85

merged 1 commit into from
Jun 24, 2024

Conversation

IgorTatarnikov
Copy link
Member

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
Tests were failing due to changes in Numpy 2.0.

What does this PR do?
Updates the code to adhere to Numpy 2.0. Updated reference to np.float_ to be np.float64 as per the migration guide. I also ran ruff check path/to/code/ --select NPY201 to make sure there were no other changes that weren't caught by our tests.

References

Please reference any existing issues/PRs that relate to this PR.

How has this PR been tested?

Tested locally.

Is this a breaking change?

No

Does this PR require an update to the documentation?

If any features have changed, or have been added. Please explain how the documentation has been updated (and link to the associated PR). See here for details.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.59%. Comparing base (a64cd9a) to head (1714828).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #85   +/-   ##
=======================================
  Coverage   91.59%   91.59%           
=======================================
  Files          35       35           
  Lines        1607     1607           
=======================================
  Hits         1472     1472           
  Misses        135      135           
Flag Coverage Δ
numba 91.53% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@IgorTatarnikov IgorTatarnikov requested review from a team June 24, 2024 14:14
@adamltyson adamltyson merged commit b1f15b8 into main Jun 24, 2024
14 checks passed
@adamltyson adamltyson deleted the numpy2-updates branch June 24, 2024 14:23
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