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
tests/functions/test_memory.py::TestContentAddressableMemory::test_ContentAddressableMemory_simple_distances
/Users/runner/work/PsyNeuLink/PsyNeuLink/psyneulink/core/components/functions/stateful/memoryfunctions.py:396: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
test_val = np.array([int(np.array(val).item()) if val else 0 for val in value])
turns into an error with Numpy 2:
> test_val = np.array([int(np.array(val).item()) if val else 0 for val in value])
E ValueError: The truth value of an empty array is ambiguous. Use `array.size > 0` to check that an array is not empty.
psyneulink/core/components/functions/stateful/memoryfunctions.py:396: ValueError
The text was updated successfully, but these errors were encountered:
…hts to integers
Numpy doesn't like evaluating boolean values of empty arrays.
Numpy <2 issues a warning, Numpy 2 raises an exception.
Closes: PrincetonUniversity#3215
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
The original DeprecationWarning:
turns into an error with Numpy 2:
The text was updated successfully, but these errors were encountered: