File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ def create_array_metadata(
378378 return ArrayV2Metadata (
379379 shape = shape_parsed ,
380380 dtype = dtype_parsed ,
381- chunks = tuple (dim [0 ] for dim in outer_chunks ),
381+ chunks = tuple (int ( dim [0 ]) for dim in outer_chunks ),
382382 order = order_parsed ,
383383 dimension_separator = chunk_key_encoding_parsed .separator ,
384384 fill_value = fill_value ,
@@ -397,7 +397,7 @@ def create_array_metadata(
397397 sub_codecs : tuple [Codec , ...] = (* array_array , array_bytes , * bytes_bytes )
398398 codecs_out : tuple [Codec , ...]
399399 if inner is not None :
400- inner_chunks_flat = tuple (dim [0 ] for dim in inner .outer_chunks )
400+ inner_chunks_flat = tuple (int ( dim [0 ]) for dim in inner .outer_chunks )
401401 index_location = None
402402 if isinstance (shards , dict ):
403403 index_location = ShardingCodecIndexLocation (shards .get ("index_location" , None ))
You can’t perform that action at this time.
0 commit comments