File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ def parse_codecs(data: object) -> tuple[Codec, ...]:
5656
5757 return out
5858
59+ def parse_dimension_names (data : DimensionNames ) -> tuple [str | None , ...] | None :
60+ if data is None :
61+ return None
62+ return tuple (data )
5963
6064def parse_storage_transformers (data : object ) -> tuple [dict [str , JSON ], ...]:
6165 """
@@ -145,7 +149,7 @@ def __init__(
145149 shape_parsed = parse_shapelike (shape )
146150 chunk_grid_parsed = ChunkGrid .from_dict (chunk_grid )
147151 chunk_key_encoding_parsed = ChunkKeyEncoding .from_dict (chunk_key_encoding )
148- dimension_names_parsed = dimension_names
152+ dimension_names_parsed = parse_dimension_names ( dimension_names )
149153 # Note: relying on a type method is numpy-specific
150154 fill_value_parsed = data_type .cast_scalar (fill_value )
151155 attributes_parsed = parse_attributes (attributes )
You can’t perform that action at this time.
0 commit comments