Skip to content

Commit

Permalink
fix: not all branchid_interpretation are necessarily in ranges_or_bas…
Browse files Browse the repository at this point in the history
…kets (#1202)
  • Loading branch information
jpivarski committed May 5, 2024
1 parent b818a26 commit f067005
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/uproot/behaviors/TBranch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3007,8 +3007,10 @@ def _ranges_or_baskets_to_arrays(
)

# check for CannotBeAwkward errors on the main thread before reading any data
if isinstance(library, uproot.interpretation.library.Awkward) and isinstance(
interpretation, uproot.interpretation.objects.AsObjects
if (
isinstance(library, uproot.interpretation.library.Awkward)
and isinstance(interpretation, uproot.interpretation.objects.AsObjects)
and cache_key in branchid_to_branch
):
branchid_to_branch[cache_key]._awkward_check(interpretation)

Expand Down

0 comments on commit f067005

Please sign in to comment.