Skip to content

Commit 8ee710e

Browse files
authored
fix: apply TBranch.array's veto of AsGrouped from 'ranges_or_baskets' to HasBranches.arrays and HasBranches.iterate (#1269)
1 parent 80e7803 commit 8ee710e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/uproot/behaviors/TBranch.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,10 @@ def get_from_cache(branchname, interpretation):
811811
checked = set()
812812
for _, context in expression_context:
813813
for branch in context["branches"]:
814-
if branch.cache_key not in checked:
814+
if branch.cache_key not in checked and not isinstance(
815+
branchid_interpretation[branch.cache_key],
816+
uproot.interpretation.grouped.AsGrouped,
817+
):
815818
checked.add(branch.cache_key)
816819
for (
817820
basket_num,
@@ -1035,7 +1038,10 @@ def iterate(
10351038
checked = set()
10361039
for _, context in expression_context:
10371040
for branch in context["branches"]:
1038-
if branch.cache_key not in checked:
1041+
if branch.cache_key not in checked and not isinstance(
1042+
branchid_interpretation[branch.cache_key],
1043+
uproot.interpretation.grouped.AsGrouped,
1044+
):
10391045
checked.add(branch.cache_key)
10401046
for (
10411047
basket_num,

0 commit comments

Comments
 (0)