@@ -112,9 +112,7 @@ def test_sharding_scalar(
112112 indirect = ["array_fixture" ],
113113)
114114def test_sharding_partial (
115- store : Store ,
116- array_fixture : npt .NDArray [Any ],
117- index_location : ShardingCodecIndexLocation ,
115+ store : Store , array_fixture : npt .NDArray [Any ], index_location : ShardingCodecIndexLocation
118116) -> None :
119117 data = array_fixture
120118 spath = StorePath (store )
@@ -150,9 +148,7 @@ def test_sharding_partial(
150148 indirect = ["array_fixture" ],
151149)
152150def test_sharding_partial_readwrite (
153- store : Store ,
154- array_fixture : npt .NDArray [Any ],
155- index_location : ShardingCodecIndexLocation ,
151+ store : Store , array_fixture : npt .NDArray [Any ], index_location : ShardingCodecIndexLocation
156152) -> None :
157153 data = array_fixture
158154 spath = StorePath (store )
@@ -184,9 +180,7 @@ def test_sharding_partial_readwrite(
184180@pytest .mark .parametrize ("index_location" , ["start" , "end" ])
185181@pytest .mark .parametrize ("store" , ["local" , "memory" , "zip" ], indirect = ["store" ])
186182def test_sharding_partial_read (
187- store : Store ,
188- array_fixture : npt .NDArray [Any ],
189- index_location : ShardingCodecIndexLocation ,
183+ store : Store , array_fixture : npt .NDArray [Any ], index_location : ShardingCodecIndexLocation
190184) -> None :
191185 data = array_fixture
192186 spath = StorePath (store )
@@ -476,9 +470,7 @@ async def fail_chunk_reads(prototype: Any, key_ranges: Any, **kwargs: Any) -> li
476470@pytest .mark .parametrize ("index_location" , ["start" , "end" ])
477471@pytest .mark .parametrize ("store" , ["local" , "memory" , "zip" ], indirect = ["store" ])
478472def test_sharding_partial_overwrite (
479- store : Store ,
480- array_fixture : npt .NDArray [Any ],
481- index_location : ShardingCodecIndexLocation ,
473+ store : Store , array_fixture : npt .NDArray [Any ], index_location : ShardingCodecIndexLocation
482474) -> None :
483475 data = array_fixture [:10 , :10 , :10 ]
484476 spath = StorePath (store )
@@ -653,6 +645,7 @@ async def test_delete_empty_shards(store: Store) -> None:
653645 compressors = None ,
654646 fill_value = 1 ,
655647 )
648+ print (a .metadata .to_dict ())
656649 await _AsyncArrayProxy (a )[:, :].set (np .zeros ((16 , 16 )))
657650 await _AsyncArrayProxy (a )[8 :, :].set (np .ones ((8 , 16 )))
658651 await _AsyncArrayProxy (a )[:, 8 :].set (np .ones ((16 , 8 )))
@@ -697,6 +690,7 @@ async def test_sharding_with_empty_inner_chunk(
697690 )
698691 data [:4 , :4 ] = fill_value
699692 await a .setitem (..., data )
693+ print ("read data" )
700694 data_read = await a .getitem (...)
701695 assert np .array_equal (data_read , data )
702696
@@ -708,9 +702,7 @@ async def test_sharding_with_empty_inner_chunk(
708702)
709703@pytest .mark .parametrize ("chunks_per_shard" , [(5 , 2 ), (2 , 5 ), (5 , 5 )])
710704async def test_sharding_with_chunks_per_shard (
711- store : Store ,
712- index_location : ShardingCodecIndexLocation ,
713- chunks_per_shard : tuple [int ],
705+ store : Store , index_location : ShardingCodecIndexLocation , chunks_per_shard : tuple [int ]
714706) -> None :
715707 chunk_shape = (2 , 1 )
716708 shape = tuple (x * y for x , y in zip (chunks_per_shard , chunk_shape , strict = False ))
0 commit comments