Skip to content

Commit 6667fda

Browse files
committed
Remove get_chunk_shape
1 parent e3ba71f commit 6667fda

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/zarr/core/indexing.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,6 @@ def is_pure_orthogonal_indexing(selection: Selection, ndim: int) -> TypeGuard[Or
329329
)
330330

331331

332-
def get_chunk_shape(chunk_grid: ChunkGrid) -> tuple[int, ...]:
333-
if not chunk_grid.is_regular:
334-
raise ValueError(
335-
"get_chunk_shape only works with regular chunk grids. "
336-
"Use chunk_grid.dimensions for rectilinear grids."
337-
)
338-
return chunk_grid.chunk_shape
339-
340-
341332
def normalize_integer_selection(dim_sel: int, dim_len: int) -> int:
342333
# normalize type to int
343334
dim_sel = int(dim_sel)

0 commit comments

Comments
 (0)