Skip to content

Add Numpy 2 compatibility #710

@cmeyer

Description

@cmeyer

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions