Skip to content

Commit 2c1445e

Browse files
authored
Merge pull request #38 from grlee77/dimension_separator
use dimension_separator in zarr-python data generation script
2 parents 7349e03 + 11f195c commit 2c1445e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- python == 3.7.9
1717
- scikit-image
1818
- pytest
19-
- zarr >= 2.4.0
19+
- zarr >= 2.8.0
2020
- pip
2121
- pandas
2222
- tabulate

generate_data/generate_zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def generate_zarr_format(compressors=['gzip', 'blosc', 'zlib', None]):
2020
(False, zarr.storage.FSStore, {}),
2121
(True, zarr.storage.NestedDirectoryStore, {}),
2222
(True, zarr.storage.FSStore,
23-
{'key_separator': '/', 'auto_mkdir': True}),
23+
{'dimension_separator': '/', 'auto_mkdir': True}),
2424
]:
2525

2626
nested_str = '_nested' if nested else '_flat'

test/test_read_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def read_with_zarr(fpath, ds_name, nested):
7373
if nested:
7474
if 'FSStore' in str(fpath):
7575
store = zarr.storage.FSStore(
76-
os.fspath(fpath), key_separator='/', mode='r'
76+
os.fspath(fpath), dimension_separator='/', mode='r'
7777
)
7878
else:
7979
store = zarr.storage.NestedDirectoryStore(os.fspath(fpath))

0 commit comments

Comments
 (0)