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 (#1269)
  • Loading branch information
jpivarski authored Aug 13, 2024
1 parent 80e7803 commit 8ee710e
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 8ee710e

Please sign in to comment.