Open mwtoews opened 1 year ago
Another issue is that np.int
was deprecated
See
File "/perm/cyrs/conda/envs/calibrate_ecland/lib/python3.11/site-packages/spotpy/algorithms/dds.py", line 281, in sample
initial_iterations = np.int(np.max([5, round(0.005 * repetitions)]))
^^^^^^
File "/perm/cyrs/conda/envs/calibrate_ecland/lib/python3.11/site-packages/numpy/__init__.py", line 324, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'inf'?
Tests currently fail with recent NumPy releases. For instance:
With current numpy (1.24.4):
With previous numpy (1.23.5) the test passes, but shows a VisibleDeprecationWarning:
where it created
array([[array([], dtype=float64), array([0, 0, 0, 0, 0])]], dtype=object)