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

Support numpy 2.0 #3386

Open
wants to merge 12 commits into
base: RELEASE_next_patch
Choose a base branch
from
Open

Conversation

ericpre
Copy link
Member

@ericpre ericpre commented Jun 8, 2024

Now that matplotlib and pint supports numpy 2.0, we can test hyperspy against the pre-release of numpy.

xref hyperspy/hyperspy-extensions-list#56

Progress of the PR

  • Add support for numpy 2.0,
  • Add build to test matrix on GitHub CI to test with pre-release of numpy,
  • update docstring (if appropriate),
  • [n/a] update user guide (if appropriate),
  • add an changelog entry in the upcoming_changes folder (see upcoming_changes/README.rst),
  • Check formatting changelog entry in the readthedocs doc build of this PR (link in github checks)
  • add/update tests,
  • ready for review.

Copy link

codecov bot commented Jun 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.64%. Comparing base (52ceddc) to head (83b3faa).

Additional details and impacted files
@@                  Coverage Diff                   @@
##           RELEASE_next_patch    #3386      +/-   ##
======================================================
+ Coverage               80.62%   80.64%   +0.02%     
======================================================
  Files                     146      146              
  Lines                   21918    21921       +3     
  Branches                 5173     5176       +3     
======================================================
+ Hits                    17671    17678       +7     
+ Misses                   3029     3026       -3     
+ Partials                 1218     1217       -1     

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

Copy link
Contributor

@jlaehne jlaehne left a comment

Choose a reason for hiding this comment

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

Looks all sensible to me, but maybe a second review would not hurt @francisco-dlp @CSSFrancis

@@ -43,7 +48,7 @@ jobs:
PYTHON_VERSION: '3.11'
PIP_SELECTOR: '[all, tests, coverage]'
- os: macos
os_version: '14'
os_version: '13'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why run on a lower macos version?

Copy link
Member Author

Choose a reason for hiding this comment

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

To test on both architectures currently available on mac: intel and arm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants