Skip to content

Commit

Permalink
fix: apply TBranch.array's veto of AsGrouped from 'ranges_or_baskets'…
Browse files Browse the repository at this point in the history
… to HasBranches.arrays and HasBranches.iterate
  • Loading branch information
jpivarski committed Aug 12, 2024
1 parent 80e7803 commit fce7e94
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/uproot/behaviors/TBranch.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,10 @@ def get_from_cache(branchname, interpretation):
checked = set()
for _, context in expression_context:
for branch in context["branches"]:
if branch.cache_key not in checked:
if branch.cache_key not in checked and not isinstance(
branchid_interpretation[branch.cache_key],
uproot.interpretation.grouped.AsGrouped,
):
checked.add(branch.cache_key)
for (
basket_num,
Expand Down Expand Up @@ -1035,7 +1038,10 @@ def iterate(
checked = set()
for _, context in expression_context:
for branch in context["branches"]:
if branch.cache_key not in checked:
if branch.cache_key not in checked and not isinstance(
branchid_interpretation[branch.cache_key],
uproot.interpretation.grouped.AsGrouped,
):
checked.add(branch.cache_key)
for (
basket_num,
Expand Down

0 comments on commit fce7e94

Please sign in to comment.