File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -256,15 +256,13 @@ def arrays(
256
256
arrays = numpy_arrays (shapes = shapes )
257
257
nparray = draw (arrays , label = "array data" )
258
258
chunk_shape = draw (chunk_shapes (shape = nparray .shape ), label = "chunk shape" )
259
- extra_kwargs = {}
259
+ dim_names : None | list [ str | None ] = None
260
260
if zarr_format == 3 and all (c > 0 for c in chunk_shape ):
261
261
shard_shape = draw (
262
262
st .none () | shard_shapes (shape = nparray .shape , chunk_shape = chunk_shape ),
263
263
label = "shard shape" ,
264
264
)
265
- extra_kwargs ["dimension_names" ] = draw (
266
- dimension_names (ndim = nparray .ndim ), label = "dimension names"
267
- )
265
+ dim_names = draw (dimension_names (ndim = nparray .ndim ), label = "dimension names" )
268
266
else :
269
267
shard_shape = None
270
268
# test that None works too.
@@ -285,7 +283,7 @@ def arrays(
285
283
attributes = attributes ,
286
284
# compressor=compressor, # FIXME
287
285
fill_value = fill_value ,
288
- ** extra_kwargs ,
286
+ dimension_names = dim_names ,
289
287
)
290
288
291
289
assert isinstance (a , Array )
You can’t perform that action at this time.
0 commit comments