ImperialCollegeLondon / pyrealm

Development of the pyrealm package, providing an integrated toolbox for modelling plant productivity, growth and demography using Python.
https://pyrealm.readthedocs.io/
MIT License
21 stars 8 forks source link

Numpy 2.0 migration #248

Closed j-emberton closed 3 months ago

j-emberton commented 4 months ago

Is your feature request related to a problem? Please describe. Numpy 2.0 launches on June 16th 2024.

We should plan to migrate to numpy 2.0 however as there are some breaking changes in the python API, we may need to make code changes to support it.

Describe the solution you'd like Ruff linter can auto fix numpy using rule NPY201

Once we have successfully implemented Ruff as our linter we should include this in the pyproject.toml

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

j-emberton commented 4 months ago

https://numpy.org/devdocs/numpy_2_0_migration_guide.html

Migration guide

j-emberton commented 4 months ago

Scypy >1.13.x supports Numpy 2.x