We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95d4aa commit df514dfCopy full SHA for df514df
zarr/tests/test_dim_separator.py
@@ -2,6 +2,7 @@
2
3
import pytest
4
from numpy.testing import assert_array_equal
5
+from functools import partial
6
7
import zarr
8
from zarr.core import Array
@@ -43,9 +44,16 @@ def dataset(tmpdir, request):
43
44
if not static.exists(): # pragma: no cover
45
46
if "nested" in which:
47
+ # No way to reproduce the nested_legacy file via code
48
generator = NestedDirectoryStore
49
else:
- generator = DirectoryStore
50
+ if "legacy" in suffix:
51
+ # No dimension_separator metadata included
52
+ generator = DirectoryStore
53
+ else:
54
+ # Explicit dimension_separator metadata included
55
+ generator = partial(DirectoryStore,
56
+ dimension_separator=".")
57
58
# store the data - should be one-time operation
59
s = generator(str(static))
0 commit comments