Skip to content

Commit aa75c98

Browse files
committed
Revert "Attempt failed: keeping '.' and switching"
This reverts commit 51b3109.
1 parent 51b3109 commit aa75c98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zarr/n5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def __init__(self, *args, **kwargs):
327327
if 'dimension_separator' in kwargs:
328328
kwargs.pop('dimension_separator')
329329
warnings.warn('Keyword argument `dimension_separator` will be ignored')
330-
dimension_separator = "."
330+
dimension_separator = "/"
331331
super().__init__(*args, dimension_separator=dimension_separator, **kwargs)
332332

333333
def _normalize_key(self, key):
@@ -339,7 +339,7 @@ def _normalize_key(self, key):
339339
*bits, end = key.split("/")
340340

341341
if end not in (self.array_meta_key, self.group_meta_key, self.attrs_key):
342-
end = end.replace(".", "/") # Hard-code self.key_separator)
342+
end = end.replace(".", self.key_separator)
343343
key = "/".join(bits + [end])
344344
return key.lower() if self.normalize_keys else key
345345

@@ -627,7 +627,7 @@ def array_metadata_to_zarr(array_metadata):
627627
array_metadata['fill_value'] = 0 # also if None was requested
628628
array_metadata['order'] = 'C'
629629
array_metadata['filters'] = []
630-
array_metadata['dimension_separator'] = '.'
630+
array_metadata['dimension_separator'] = '/'
631631

632632
compressor_config = array_metadata['compressor']
633633
compressor_config = compressor_config_to_zarr(compressor_config)

0 commit comments

Comments
 (0)