Skip to content

Commit

Permalink
fix offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Aug 19, 2022
1 parent c25ff6a commit f0caf63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uproot/models/RNTuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ def arrays(
# don't distinguish data and offsets
D[f"{key}-data"] = content
D[f"{key}-offsets"] = content
entry_start -= cluster_starts[start_cluster_idx]
entry_stop -= cluster_stops[stop_cluster_idx]
cluster_offset = cluster_starts[start_cluster_idx]
entry_start -= cluster_offset
entry_stop -= cluster_offset - 1
return ak._v2.from_buffers(form, L, Container(D))[entry_start:entry_stop]


Expand Down

0 comments on commit f0caf63

Please sign in to comment.