From 0968729d70c91a589e2d36da70d614b6c111c2ed Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Mon, 28 Nov 2022 23:19:18 +0000 Subject: [PATCH] fix: catch omitted case --- src/awkward/contents/regulararray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/awkward/contents/regulararray.py b/src/awkward/contents/regulararray.py index d76ab9b603..2f8e0c31a6 100644 --- a/src/awkward/contents/regulararray.py +++ b/src/awkward/contents/regulararray.py @@ -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:]