Skip to content

Commit 51d9570

Browse files
committed
Merge commit 'refs/pull/793/head' of github.com:zarr-developers/zarr-python into pr-793+773
2 parents b874f3a + 02ea91c commit 51d9570

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

zarr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
zeros_like)
1010
from zarr.errors import CopyError, MetadataError
1111
from zarr.hierarchy import Group, group, open_group
12-
from zarr.n5 import N5Store
12+
from zarr.n5 import N5Store, N5FSStore
1313
from zarr.storage import (ABSStore, DBMStore, DictStore, DirectoryStore,
1414
LMDBStore, LRUStoreCache, MemoryStore, MongoDBStore,
1515
NestedDirectoryStore, RedisStore, SQLiteStore,

zarr/n5.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,24 @@ class N5FSStore(FSStore):
293293
(e.g. 'foo' and 'FOO' will be treated as equivalent). This can be
294294
useful to avoid potential discrepancies between case-senstive and
295295
case-insensitive file system. Default value is False.
296+
296297
Examples
297298
--------
298299
Store a single array::
300+
299301
>>> import zarr
300-
>>> store = zarr.N5FSStore('data/array.n5')
302+
>>> store = zarr.N5FSStore('data/array.n5', auto_mkdir=True)
301303
>>> z = zarr.zeros((10, 10), chunks=(5, 5), store=store, overwrite=True)
302304
>>> z[...] = 42
305+
303306
Store a group::
304-
>>> store = zarr.N5FSStore('data/group.n5')
307+
308+
>>> store = zarr.N5FSStore('data/group.n5', auto_mkdir=True)
305309
>>> root = zarr.group(store=store, overwrite=True)
306310
>>> foo = root.create_group('foo')
307311
>>> bar = foo.zeros('bar', shape=(10, 10), chunks=(5, 5))
308312
>>> bar[...] = 42
313+
309314
Notes
310315
-----
311316
This is an experimental feature.

0 commit comments

Comments
 (0)