Skip to content

Commit

Permalink
fix placeholder arrays in record repr (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey authored Dec 17, 2024
1 parent a8d8634 commit b84d8bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/awkward/prettyprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__")
Expand Down

0 comments on commit b84d8bc

Please sign in to comment.