You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With previous numpy (1.23.5) the test passes, but shows a VisibleDeprecationWarning:
/path/to/spotpy/src/spotpy/algorithms/padds.py:173: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
self.pareto_front = np.array(
where it created array([[array([], dtype=float64), array([0, 0, 0, 0, 0])]], dtype=object)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: