Skip to content

Commit

Permalink
fix: _is_getitem_at_placeholder logic was backward for UnionArray (#3083
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jpivarski authored Apr 16, 2024
1 parent f030b8a commit e9dd269
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/awkward/contents/unionarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,11 @@ def _is_getitem_at_placeholder(self) -> bool:
if isinstance(self._tags, PlaceholderArray) or isinstance(
self._index, PlaceholderArray
):
return False
return True
for content in self._contents:
if content._is_getitem_at_placeholder():
return False
return True
return True
return False

def _getitem_at(self, where: IndexType):
if not self._backend.nplike.known_data:
Expand Down

0 comments on commit e9dd269

Please sign in to comment.