Skip to content

Commit

Permalink
Fix: ensure posaxis is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jan 25, 2022
1 parent 8e06b8a commit dc458a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/awkward/_v2/operations/structure/ak_is_none.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ def getfunction_inner(layout, depth, **kwargs):
return

def getfunction_outer(layout, depth, depth_context, **kwargs):
posaxis = layout.axis_wrap_if_negative(depth_context["posaxis"])
if posaxis != depth - 1:
depth_context["posaxis"] = layout.axis_wrap_if_negative(
depth_context["posaxis"]
)
if depth_context["posaxis"] != depth - 1:
return

return layout.recursively_apply(getfunction_inner)
Expand Down

0 comments on commit dc458a4

Please sign in to comment.