Numpy 2 compatibility #345
Labels
CI/CD
enhancement
New feature or request
external problem
FutureWarning
Aim is to prevent FutureWarnings when they appear.
Milestone
Numpy 2.0.0rc1 was released: https://pypi.org/project/numpy/2.0.0c1 and is officially usable to build extensions.
We should be prepared to be compatible with it.
A lot of the tests fail because of emcee and this issue: dfm/emcee#509
Other errors come from these lines in
estimator.pyx
:and raise
This only occurs on windows and is related to this: https://numpy.org/devdocs/numpy_2_0_migration_guide.html#windows-default-integer
One other category of errors is:
np.array(..., copy=False)
is used in krige/base.py, 3 times in variogram/variogram.py and 3 times in tools/geometric.pyIn order to mimic the
ndmin=...
feature, we could replace these with e.g.:The text was updated successfully, but these errors were encountered: