@@ -69,8 +69,20 @@ class N5Store(NestedDirectoryStore):
69
69
70
70
Safe to write in multiple threads or processes.
71
71
72
+ .. deprecated:: 2.18.3
73
+ `N5Store` will be removed in Zarr 3.0.0.
72
74
"""
73
75
76
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
77
+ super ().__init__ (* args , ** kwargs )
78
+ warnings .warn (
79
+ "The N5Store is deprecated and will be removed in a Zarr-Python version 3, "
80
+ "see https://github.com/zarr-developers/zarr-python/issues/1274 and "
81
+ "https://github.com/zarr-developers/n5py for more information." ,
82
+ FutureWarning ,
83
+ stacklevel = 2 ,
84
+ )
85
+
74
86
def __getitem__ (self , key : str ) -> bytes :
75
87
if key .endswith (zarr_group_meta_key ):
76
88
key_new = key .replace (zarr_group_meta_key , n5_attrs_key )
@@ -322,13 +334,23 @@ class N5FSStore(FSStore):
322
334
storage, and this procedure requires chunk keys with "." separated
323
335
dimensions, hence the Zarr arrays targeting N5 have the deceptive
324
336
"." dimension separator.
337
+
338
+ .. deprecated:: 2.18.3
339
+ `N5FSStore` will be removed in Zarr 3.0.0.
325
340
"""
326
341
327
342
_array_meta_key = "attributes.json"
328
343
_group_meta_key = "attributes.json"
329
344
_attrs_key = "attributes.json"
330
345
331
346
def __init__ (self , * args , ** kwargs ):
347
+ warnings .warn (
348
+ "The N5FSStore is deprecated and will be removed in a Zarr-Python version 3, "
349
+ "see https://github.com/zarr-developers/zarr-python/issues/1274 and "
350
+ "https://github.com/zarr-developers/n5py for more information." ,
351
+ FutureWarning ,
352
+ stacklevel = 2 ,
353
+ )
332
354
if "dimension_separator" in kwargs :
333
355
kwargs .pop ("dimension_separator" )
334
356
warnings .warn (
0 commit comments