From b84d8bc19ba7bb93ce67cac3aca6a61fcca9fdeb Mon Sep 17 00:00:00 2001 From: Peter Fackeldey Date: Tue, 17 Dec 2024 15:12:32 -0500 Subject: [PATCH] fix placeholder arrays in record repr (#3342) --- src/awkward/prettyprint.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/awkward/prettyprint.py b/src/awkward/prettyprint.py index fb2b8199f7..b4075cf0d6 100644 --- a/src/awkward/prettyprint.py +++ b/src/awkward/prettyprint.py @@ -93,6 +93,9 @@ def get_at(data: Content, index: int): def get_field(data: Content, field: str): + if isinstance(data._layout, ak.record.Record): + if data._layout._array.content(field)._is_getitem_at_placeholder(): + return PlaceholderValue() out = data._layout._getitem_field(field) if isinstance(out, ak.contents.NumpyArray): array_param = out.parameter("__array__")