Skip to content

Commit

Permalink
fix: pull out .data from NumpyArray
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 11, 2023
1 parent cba9d77 commit 05cabdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uproot/writing/_cascadetree.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def extend(self, file, sink, data):
"how did this pass the type check?\n\n" + repr(content)
)

big_endian = numpy.asarray(content, dtype=datum["dtype"])
big_endian = numpy.asarray(content.data, dtype=datum["dtype"])
shape = tuple(shape) + big_endian.shape[1:]

if shape[1:] != datum["shape"]:
Expand Down

0 comments on commit 05cabdd

Please sign in to comment.