Skip to content

Commit

Permalink
Protect XRootD from NumPy integers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Jul 8, 2020
1 parent f205fe5 commit 7d61301
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uproot4/behaviors/TBranch.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def _ranges_or_baskets_to_arrays(
branchid_num_baskets[id(branch)] += 1

if isinstance(range_or_basket, tuple) and len(range_or_basket) == 2:
range_or_basket = (int(range_or_basket[0]), int(range_or_basket[1]))
ranges.append(range_or_basket)
range_args[range_or_basket] = (branch, basket_num)
range_original_index[range_or_basket] = original_index
Expand Down

0 comments on commit 7d61301

Please sign in to comment.