Skip to content

Commit

Permalink
Feature: add pass_apply argument to util
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jun 11, 2021
1 parent 94de4e5 commit 43f6fcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/awkward/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ def recursively_apply(
getfunction,
pass_depth=True,
pass_user=False,
pass_apply=False,
user=None,
keep_parameters=True,
numpy_to_regular=False,
Expand All @@ -1113,6 +1114,8 @@ def apply(layout, depth, user):
args = args + (depth,)
if pass_user:
args = args + (user,)
if pass_apply:
args = args + (apply,)

custom = getfunction(layout, *args)
if callable(custom):
Expand Down

0 comments on commit 43f6fcf

Please sign in to comment.