pysal / spopt

Spatial Optimization
https://pysal.org/spopt/
BSD 3-Clause "New" or "Revised" License
303 stars 46 forks source link

`numpy>=2.0` failures -- [2024-06-19] #456

Closed jGaboardi closed 2 months ago

jGaboardi commented 2 months ago

numpy>=2.0 failures to fix before #455

FAILED spopt/tests/test_maxp.py::TestMaxPHeuristic::test_maxp_heuristic_complex - AttributeError: `np.Inf` was removed in the NumPy 2.0 release. Use `np.inf` instead.. Did you mean: 'inf'?
FAILED spopt/tests/test_maxp.py::TestMaxPHeuristic::test_maxp_one_var - AttributeError: `np.Inf` was removed in the NumPy 2.0 release. Use `np.inf` instead.. Did you mean: 'inf'?