@@ -2853,37 +2853,3 @@ def test_property_block_indexing_rectilinear(data: st.DataObject) -> None:
28532853 a [tuple (sel )],
28542854 err_msg = f"dim={ dim } , block={ block_ix } " ,
28552855 )
2856-
2857-
2858- # ---------------------------------------------------------------------------
2859- # Backwards-compatibility: import RegularChunkGrid from zarr.core.chunk_grids
2860- # ---------------------------------------------------------------------------
2861- # Downstream packages (tifffile, cubed, ismip-indexing) use this pattern:
2862- # from zarr.core.chunk_grids import RegularChunkGrid
2863- # RegularChunkGrid(chunk_shape=(...))
2864-
2865-
2866- def test_regular_chunk_grid_import_from_chunk_grids () -> None :
2867- """RegularChunkGrid can be imported from zarr.core.chunk_grids with deprecation warning."""
2868- with pytest .warns (DeprecationWarning , match = "RegularChunkGrid" ):
2869- from zarr .core .chunk_grids import RegularChunkGrid
2870-
2871- assert RegularChunkGrid is RegularChunkGridMetadata
2872-
2873-
2874- def test_regular_chunk_grid_construction_from_chunk_grids () -> None :
2875- """RegularChunkGrid(chunk_shape=...) works when imported from zarr.core.chunk_grids."""
2876- with pytest .warns (DeprecationWarning , match = "RegularChunkGrid" ):
2877- from zarr .core .chunk_grids import RegularChunkGrid
2878-
2879- grid = RegularChunkGrid (chunk_shape = (10 , 20 ))
2880- assert grid .chunk_shape == (10 , 20 )
2881-
2882-
2883- def test_regular_chunk_grid_isinstance_from_chunk_grids () -> None :
2884- """isinstance check works for RegularChunkGrid imported from zarr.core.chunk_grids."""
2885- with pytest .warns (DeprecationWarning , match = "RegularChunkGrid" ):
2886- from zarr .core .chunk_grids import RegularChunkGrid
2887-
2888- grid = RegularChunkGrid (chunk_shape = (10 , 20 ))
2889- assert isinstance (grid , RegularChunkGrid )
0 commit comments