Skip to content

Commit 2fd992e

Browse files
committed
tweak tutorial
1 parent c5f0e36 commit 2fd992e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/tutorial.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ flexibility.
1414
Creating an array
1515
-----------------
1616

17-
Zarr has a number of convenience functions for creating arrays. For
18-
example::
17+
Zarr has several functions for creating arrays. For example::
1918

2019
>>> import zarr
2120
>>> z = zarr.zeros((10000, 10000), chunks=(1000, 1000), dtype='i4')
@@ -101,7 +100,10 @@ Check that the data have been written and can be read again::
101100
True
102101

103102
Please note that there are a number of other options for persistent
104-
array storage, see the section on :ref:`tutorial_tips_storage` below.
103+
array storage, see the section on :ref:`tutorial_tips_storage`
104+
below. Also, if you are just looking for a convenient way to save
105+
NumPy arrays to disk then load back into memory later, see the
106+
functions :func:`zarr.save` and :func:`zarr.load`.
105107

106108
.. _tutorial_resize:
107109

@@ -744,9 +746,7 @@ interface as the store for a group or an array. Some storage classes
744746
are provided in the :mod:`zarr.storage` module. For example, the
745747
:class:`zarr.storage.DirectoryStore` class provides a
746748
``MutableMapping`` interface to a directory on the local file
747-
system. This is used under the hood by the
748-
:func:`zarr.creation.open_array` and :func:`zarr.hierarchy.open_group`
749-
functions.
749+
system. This is used under the hood by the :func:`zarr.open` function.
750750

751751
In other words, the following code::
752752

@@ -755,7 +755,7 @@ In other words, the following code::
755755
...is just a convenient short-hand for::
756756

757757
>>> store = zarr.DirectoryStore('example.zarr')
758-
>>> z = zarr.zeros(store=store, overwrite=True, shape=1000000, dtype='i4')
758+
>>> z = zarr.create(store=store, overwrite=True, shape=1000000, dtype='i4')
759759

760760
...and the following code::
761761

@@ -767,8 +767,8 @@ In other words, the following code::
767767
>>> grp = zarr.group(store=store, overwrite=True)
768768

769769
Any other storage class could be used in place of
770-
:class:`zarr.storage.DirectoryStore`. For example, here is an array
771-
stored directly into a zip file::
770+
:class:`zarr.storage.DirectoryStore` in the code examples above. For
771+
example, here is an array stored directly into a Zip file::
772772

773773
>>> store = zarr.ZipStore('example.zip', mode='w')
774774
>>> root_group = zarr.group(store=store)

0 commit comments

Comments
 (0)