Skip to content

Commit fda042b

Browse files
Revert "fix: Handle inhomogeneous array shapes in to_arrays()"
This reverts commit 28eb60e.
1 parent 28eb60e commit fda042b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/datajoint/expression.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,10 +1019,7 @@ def to_arrays(self, *attrs, include_key=False, order_by=None, limit=None, offset
10191019
arr = np.array(values)
10201020
except ValueError:
10211021
# Variable-size data (e.g., arrays of different shapes)
1022-
# Must assign individually to avoid numpy broadcasting issues
1023-
arr = np.empty(len(values), dtype=object)
1024-
for i, v in enumerate(values):
1025-
arr[i] = v
1022+
arr = np.array(values, dtype=object)
10261023
result_arrays.append(arr)
10271024

10281025
if include_key:

0 commit comments

Comments
 (0)