diff --git a/src/uproot/behaviors/TBranch.py b/src/uproot/behaviors/TBranch.py index 63f1e161a..688ae4de7 100644 --- a/src/uproot/behaviors/TBranch.py +++ b/src/uproot/behaviors/TBranch.py @@ -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, @@ -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,