@@ -34,7 +34,7 @@ def empty(shape, chunks, dtype=None, cname=None, clevel=None, shuffle=None,
34
34
35
35
Returns
36
36
-------
37
- z : zarr.ext. Array
37
+ z : zarr Array
38
38
39
39
"""
40
40
@@ -73,7 +73,7 @@ def zeros(shape, chunks, dtype=None, cname=None, clevel=None, shuffle=None,
73
73
74
74
Returns
75
75
-------
76
- z : zarr.ext. Array
76
+ z : zarr Array
77
77
78
78
"""
79
79
@@ -112,7 +112,7 @@ def ones(shape, chunks, dtype=None, cname=None, clevel=None, shuffle=None,
112
112
113
113
Returns
114
114
-------
115
- z : zarr.ext. Array
115
+ z : zarr Array
116
116
117
117
"""
118
118
@@ -153,7 +153,7 @@ def full(shape, chunks, fill_value, dtype=None, cname=None, clevel=None,
153
153
154
154
Returns
155
155
-------
156
- z : zarr.ext. Array
156
+ z : zarr Array
157
157
158
158
"""
159
159
@@ -193,7 +193,7 @@ def array(data, chunks=None, dtype=None, cname=None, clevel=None,
193
193
194
194
Returns
195
195
-------
196
- z : zarr.ext. Array
196
+ z : zarr Array
197
197
198
198
"""
199
199
@@ -235,7 +235,39 @@ def array(data, chunks=None, dtype=None, cname=None, clevel=None,
235
235
236
236
def open (path , mode = 'a' , shape = None , chunks = None , dtype = None , cname = None ,
237
237
clevel = None , shuffle = None , fill_value = None ):
238
- """TODO"""
238
+ """Open a persistent array.
239
+
240
+ Parameters
241
+ ----------
242
+ path : string
243
+ Path to directory in which to store the array.
244
+ mode : {'r', 'r+', 'a', 'w', 'w-'}
245
+ Persistence mode: 'r' means readonly (must exist); 'r+' means
246
+ read/write (must exist); 'a' means read/write (create if doesn't
247
+ exist); 'w' means create (overwrite if exists); 'w-' means create
248
+ (fail if exists).
249
+ shape : int or tuple of ints
250
+ Array shape.
251
+ chunks : int or tuple of ints
252
+ Chunk shape.
253
+ dtype : string or dtype, optional
254
+ NumPy dtype.
255
+ cname : string, optional
256
+ Name of compression library to use, e.g., 'blosclz', 'lz4', 'zlib',
257
+ 'snappy'.
258
+ clevel : int, optional
259
+ Compression level, 0 means no compression.
260
+ shuffle : int, optional
261
+ Shuffle filter, 0 means no shuffle, 1 means byte shuffle, 2 means
262
+ bit shuffle.
263
+ fill_value : object
264
+ Default value to use for uninitialised portions of the array.
265
+
266
+ Returns
267
+ -------
268
+ z : zarr Array
269
+
270
+ """
239
271
240
272
# TODO synchronized option
241
273
0 commit comments