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

Add Numpy 2 compatibility #710

Open
cmeyer opened this issue Mar 14, 2025 · 1 comment
Open

Add Numpy 2 compatibility #710

cmeyer opened this issue Mar 14, 2025 · 1 comment

Comments

@cmeyer
Copy link

cmeyer commented Mar 14, 2025

We would like to use py4DSTEM in Python environments with numpy 2.x.

The core packages seem to all be available to be used with numpy 2.x. Tested with this command:

conda create -n trial_dependencies -c conda-forge numpy scipy hdf5 hdf5plugin ncempy matplotlib scikit-image scikit-learn scikit-optimize tqdm dill gdown dask distributed emdfile mpire threadpoolctl pylops colorspacious

Some of the extensions dependencies may not yet available on conda-forge, but are available on PyPI (tensorflow requires 2.18 for numpy 2 compatibility, 2.18 isn't available using conda-forge on macOS arm64 yet). I'm on a macOS machine right now so I couldn't try everything (i.e. cupy).

@sezelt
Copy link
Member

sezelt commented Mar 14, 2025

When we restricted it <2.0 in #677, the reason was an incompatibility in emdfile, but that seems to have been addressed: py4dstem/emdfile@3cdf83e now. Some incompatibilities remain in the main repo, but hopefully these are only the trivial ones from deprecated aliases.

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

No branches or pull requests

2 participants