Skip to content

Commit 66afca6

Browse files
Assigning the same variable to itself (#2320)
1 parent 2e1ee2f commit 66afca6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/zarr/core/indexing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,6 @@ def __init__(
732732
order = Order(order)
733733

734734
if order == Order.INCREASING:
735-
dim_sel = dim_sel
736735
dim_out_sel = None
737736
elif order == Order.DECREASING:
738737
dim_sel = dim_sel[::-1]
@@ -880,9 +879,7 @@ def __init__(self, selection: Selection, shape: ChunkCoords, chunk_grid: ChunkGr
880879

881880
dim_indexers.append(dim_indexer)
882881

883-
dim_indexers = dim_indexers
884882
shape = tuple(s.nitems for s in dim_indexers if not isinstance(s, IntDimIndexer))
885-
chunk_shape = chunk_shape
886883
is_advanced = not is_basic_selection(selection)
887884
if is_advanced:
888885
drop_axes = tuple(
@@ -1017,7 +1014,6 @@ def __init__(
10171014
if start >= dim_len or start < 0:
10181015
raise BoundsCheckError(dim_len)
10191016

1020-
dim_indexers = dim_indexers
10211017
shape = tuple(s.nitems for s in dim_indexers)
10221018

10231019
object.__setattr__(self, "dim_indexers", dim_indexers)

0 commit comments

Comments
 (0)