Closed Andrew-S-Rosen closed 2 months ago
Thanks a lot for reporting. The unit test for chgnet
is failing for the same reason, following our recent migration of build system to NumPy 2 #3894, as in NumPy 2 the default int type has been changed from int32
to int64
in Windows 64-bit system.
I would look into this ASAP.
@Andrew-S-Rosen I believe you just saved the world :) It turns out there're way more uncaught errors https://github.com/materialsproject/pymatgen/actions/runs/10330245550/job/28599007337
Python version
3.11
Pymatgen version
2024.8.9
Operating system version
Windows
Current behavior
As of pyamtgen 2024.8.8, there is an incompatibility with
Lattice.get_points_in_sphere
on Windows when using numpy < 2. Everything seems to run fine on numpy 2.0.1 and/or non-Windows machines.Traceback:
This influences many other functions in Pymatgen, such as the example below:
Traceback: