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
Also affects other assert functions like assert_array_equal, assert_allclose
Additionally, assert_allclose fails on empty object arrays:
>>> np.__version__
'1.24.2'
>>> x = np.array([], dtype=object)
>>> np.testing.assert_allclose(x, x)
Traceback (most recent call last):
[...]
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
The following fails:
The text was updated successfully, but these errors were encountered: