Skip to content

Commit 1d60dcd

Browse files
committed
Remove an unused loop counter
1 parent 8845a05 commit 1d60dcd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/blosc2/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ def get_selection(ctuple, ptuple, chunks):
815815
# ps.stop = pt.start + step * (out_stop - 1) + k, k in [step, -1] or [1, step]
816816
# => out_stop = (ps.stop - pt.start - sign) // step + 1
817817
out_pselection = ()
818-
i = 0
819818
for ps, pt in zip(pselection, ptuple, strict=True):
820819
sign_ = np.sign(pt.step)
821820
n = (ps.start - pt.start - sign_) // pt.step
@@ -829,7 +828,6 @@ def get_selection(ctuple, ptuple, chunks):
829828
1,
830829
),
831830
)
832-
i += 1
833831

834832
loc_selection = tuple( # is s.stop is None, get whole chunk so s.start - 0
835833
slice(0, s.stop - s.start, s.step)

0 commit comments

Comments
 (0)