Skip to content

Conversation

@sezelt
Copy link
Member

@sezelt sezelt commented Mar 14, 2025

Remove the use of aliases deprecated by numpy 2 by running ruff check py4DSTEM --select NPY201 --fix and update setup.py to no longer restrict numpy < 2.0.

Based on the migration guide I don't anticipate any further problems within py4DSTEM from using numpy 2.

Addresses #710.

@smribet
Copy link
Collaborator

smribet commented Mar 14, 2025

I think we should also unpin ncempy

@sezelt
Copy link
Member Author

sezelt commented Mar 14, 2025

Yes, that can be unpinned. With this change, pip will install numpy 2 so everything in the requirements is compatible

Copy link
Collaborator

@smribet smribet left a comment

Choose a reason for hiding this comment

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

Ok! It looks good to me, thanks! I'll approve, but wait until next week to merge in case anyone else wants to weigh in.

@smribet smribet merged commit 9f46139 into py4dstem:dev Mar 17, 2025
6 checks passed
@sezelt sezelt deleted the np2 branch March 17, 2025 16:02
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