pyro-kinetics / pyrokinetics

Python library to run and analyse gyrokinetics simulations
https://pyrokinetics.readthedocs.io/en/latest/#
GNU Lesser General Public License v3.0
24 stars 6 forks source link

NumPy 2.0 Compatibility #369

Closed LiamPattinson closed 2 weeks ago

LiamPattinson commented 3 months ago

NumPy 2.0 was released a couple of days ago :tada:

You can test compatibility by installing into a fresh virtual environment as so:

$ python -m venv numpy2venv
$ source numpy2venv/bin/activate
$ pip install -e .[tests]
$ pip install --upgrade numpy
$ pytest

We're mostly compatible, with just two issues:

For now, installing Pyrokinetics will only grab NumPy versions up to 1.26, as some of our dependencies require numpy == 1.x (pyloidal is one of them, but I can fix that very easily). If somebody can figure out what's causing test_poincare to fail, we'll be ready to upgrade.