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
Found within a couple tests. The tests seem to exist only to test a soon to be deprecated behaviour, so might just result in deleting the tests.
Relevant warnings below.
lib/iris/tests/unit/cube/test_Cube.py:78: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
data = np.matrix([[1, 2, 3], [4, 5, 6]])
lib/iris/tests/unit/data_manager/test_DataManager.py::Test_data__setter::test_coerce_to_ndarray
lib/iris/tests/unit/data_manager/test_DataManager.py:463: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
matrix = np.matrix(real_array)
The text was updated successfully, but these errors were encountered:
ESadek-MO
changed the title
Resolve numpy deprecation warning: using matrix subclass instead of recommended ndarray
Resolve numpy deprecation: using matrix subclass instead of recommended ndarray
Oct 5, 2023
📰 Custom Issue
Written up from #5465.
Found within a couple tests. The tests seem to exist only to test a soon to be deprecated behaviour, so might just result in deleting the tests.
Relevant warnings below.
The text was updated successfully, but these errors were encountered: