Skip to content

Commit

Permalink
fix: catch omitted case
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Nov 28, 2022
1 parent f838754 commit 0968729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/awkward/contents/regulararray.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def maybe_to_NumpyArray(self):
if isinstance(self._content, ak.contents.NumpyArray):
content = self._content[: self._length * self._size]
elif isinstance(self._content, RegularArray):
content = self._content[: self._length * self._size].maybe_toNumpyArray()
content = self._content[: self._length * self._size].maybe_to_NumpyArray()

if isinstance(content, ak.contents.NumpyArray):
shape = (self._length, self._size) + content.data.shape[1:]
Expand Down

0 comments on commit 0968729

Please sign in to comment.