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 #677

Merged
merged 2 commits into from
Sep 5, 2024
Merged

numpy < 2 #677

merged 2 commits into from
Sep 5, 2024

Conversation

smribet
Copy link
Collaborator

@smribet smribet commented Aug 29, 2024

Changing set-up file (for v 0.14 only) to avoid numpy 2 install errors

@mlhenderson mlhenderson self-assigned this Aug 29, 2024
@mlhenderson
Copy link
Contributor

mlhenderson commented Aug 29, 2024

@smribet Yes to numpy < 2.0. Is the ncempy restriction also due to numpy?

I answered my own question; yes, ncempy 1.11.2 has numpy<2 in setup.py, and versions beyond will expect numpy >= 2.

@smribet
Copy link
Collaborator Author

smribet commented Aug 29, 2024

Yes I think I made a mistake specifying the version though. Should it be <= 1.11.2?

@sezelt
Copy link
Member

sezelt commented Aug 29, 2024

Out of curiosity, what specifically was the numpy 2 error?
I made an environment with py4DSTEM that uses numpy 2 and it at least imports successfully.

@mlhenderson
Copy link
Contributor

<= 1.11.2 would be better, yes. There are other changes for 1.11.2 besides the numpy restriction that should be picked up, which you would not get from 1.11.1.

Copy link
Contributor

@mlhenderson mlhenderson left a comment

Choose a reason for hiding this comment

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

we should also restrict pymatgen to < 2024.8.9, since that is pinned to numpy 2.0.0

@mlhenderson
Copy link
Contributor

I did some local py4DSTEM testing using numpy 2, and emdfile has at least one incompatibility with numpy 2 currently. It makes sense to put some version limits for py4DSTEM numpy install, at least temporarily, until the problems related to dependencies can be addressed.

@bsavitzky
Copy link
Member

bsavitzky commented Aug 29, 2024 via email

@mlhenderson
Copy link
Contributor

I filed an issue with emdfile, so far one error related to usage of numpy.string_

py4dstem/emdfile#2

@bsavitzky
Copy link
Member

bsavitzky commented Aug 29, 2024 via email

@smribet
Copy link
Collaborator Author

smribet commented Aug 30, 2024

@bsavitzky it sounds like we should pin emdfile as well?

@bsavitzky
Copy link
Member

bsavitzky commented Aug 30, 2024 via email

@smribet
Copy link
Collaborator Author

smribet commented Sep 5, 2024

Sounds good!

@bsavitzky bsavitzky merged commit 6668c8e into py4dstem:dev Sep 5, 2024
6 checks passed
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.

4 participants