Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 10, 2024
1 parent 280dc3e commit b655fcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/uproot/models/RNTuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ def read_col_pages(self, ncol, cluster_range, dtype_byte, pad_missing_ele=False)
or dtype_byte == uproot.const.rntuple_col_type_to_num_dict["splitindex32"]
):
# Extract the last offset values:
last_elements = [arr[-1] for arr in arrays[:-1]] # First value always zero, therefore skip first arr.
last_elements = [
arr[-1] for arr in arrays[:-1]
] # First value always zero, therefore skip first arr.
# Compute cumulative sum using itertools.accumulate:
last_offsets = [*list(accumulate(last_elements))]
# Add the offsets to each array
Expand Down

0 comments on commit b655fcc

Please sign in to comment.