diff --git a/.ci_support/environment.yml b/.ci_support/environment.yml index 1d6762710..b615a45e6 100644 --- a/.ci_support/environment.yml +++ b/.ci_support/environment.yml @@ -9,7 +9,7 @@ dependencies: - matplotlib-base =3.10.1 - nglview =3.1.4 - notebook -- numpy =1.26.4 +- numpy =2.2.4 - phonopy =2.38.0 - plotly =6.0.1 - pymatgen =2025.3.10 diff --git a/.ci_support/environment_mini.yml b/.ci_support/environment_mini.yml index adcc8b754..46ce0f080 100644 --- a/.ci_support/environment_mini.yml +++ b/.ci_support/environment_mini.yml @@ -3,6 +3,6 @@ channels: dependencies: - ase =3.24.0 - coverage -- numpy =1.26.4 +- numpy =2.2.4 - scipy =1.15.2 - setuptools diff --git a/pyproject.toml b/pyproject.toml index 89d5b175a..9a8926ef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ classifiers = [ ] dependencies = [ "ase==3.24.0", - "numpy==1.26.4", + "numpy==2.2.4", "scipy==1.15.2", ] dynamic = ["version"] diff --git a/tests/test_visualize.py b/tests/test_visualize.py index 5b8f31d7a..3360818b6 100644 --- a/tests/test_visualize.py +++ b/tests/test_visualize.py @@ -31,7 +31,7 @@ def test_get_frame(self): dx, counts = np.unique( np.diff(frame, axis=-2).squeeze().astype(int), axis=0, return_counts=True ) - self.assertEqual(dx.ptp(), 1, msg="Frames not drawn along the nearest edges") + self.assertEqual(np.ptp(dx), 1, msg="Frames not drawn along the nearest edges") msg = ( "There must be four lines along each direction" + " (4 x [1, 0, 0], 4 x [0, 1, 0] and 4 x [0, 0, 1])"