ValueError
in DataJoint-Python 0.14.3 when using numpy 2.2.*
#1201
Labels
ValueError
in DataJoint-Python 0.14.3 when using numpy 2.2.*
#1201
Bug Report
Description
Attempting to insert a file into a
File
part table as external storage triggers aValueError
due to incompatibility between DataJoint-Python (v0.14.3) and numpy (v2.2.*).numpy 2.2.*
raises an error for truth-testing on empty arrays, whereas earlier versions issued aDeprecationWarning
. This affects any truth-testing of empty arrays within DataJoint-Python.Reproducibility
The issue is reproducible during file insertion using the following definition:
dj.Part
table as shown above.insert1
method with numpy 2.2.* installed.Expected Behavior
The file should be inserted into the table without error, as it works with numpy versions prior to 2.2.
Additional Research and Context
Solution
Patching DataJoint-Python to handle truth-testing of empty arrays correctly.
The text was updated successfully, but these errors were encountered: