Skip to content

Commit 13024bb

Browse files
committed
doco
1 parent a576dcf commit 13024bb

File tree

2 files changed

+39
-7
lines changed

2 files changed

+39
-7
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Install from GitHub::
2424
Status
2525
------
2626

27-
Highly experimental, pre-alpha. Bug reports and pull requests welcome.
27+
Highly experimental, alpha. Bug reports and pull requests welcome.
2828

2929
Design goals
3030
------------

zarr/core.py

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def empty(shape, chunks, dtype=None, cname=None, clevel=None, shuffle=None,
3434
3535
Returns
3636
-------
37-
z : zarr.ext.Array
37+
z : zarr Array
3838
3939
"""
4040

@@ -73,7 +73,7 @@ def zeros(shape, chunks, dtype=None, cname=None, clevel=None, shuffle=None,
7373
7474
Returns
7575
-------
76-
z : zarr.ext.Array
76+
z : zarr Array
7777
7878
"""
7979

@@ -112,7 +112,7 @@ def ones(shape, chunks, dtype=None, cname=None, clevel=None, shuffle=None,
112112
113113
Returns
114114
-------
115-
z : zarr.ext.Array
115+
z : zarr Array
116116
117117
"""
118118

@@ -153,7 +153,7 @@ def full(shape, chunks, fill_value, dtype=None, cname=None, clevel=None,
153153
154154
Returns
155155
-------
156-
z : zarr.ext.Array
156+
z : zarr Array
157157
158158
"""
159159

@@ -193,7 +193,7 @@ def array(data, chunks=None, dtype=None, cname=None, clevel=None,
193193
194194
Returns
195195
-------
196-
z : zarr.ext.Array
196+
z : zarr Array
197197
198198
"""
199199

@@ -235,7 +235,39 @@ def array(data, chunks=None, dtype=None, cname=None, clevel=None,
235235

236236
def open(path, mode='a', shape=None, chunks=None, dtype=None, cname=None,
237237
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+
"""
239271

240272
# TODO synchronized option
241273

0 commit comments

Comments
 (0)