Skip to content

Commit 0829923

Browse files
jhammandstansbynormanrz
authored
Apply suggestions from code review
Co-authored-by: David Stansby <[email protected]> Co-authored-by: Norman Rzepka <[email protected]>
1 parent 5c1916a commit 0829923

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/user-guide/async.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Async Zarr
2+
Asynchronous API
33
==========
44

55
Zarr-Python 3 added a new asynchronous API for reading and writing data using `asyncio`.
@@ -13,10 +13,10 @@ The usage of the async API mirrors the synchronous API.
1313
import zarr.api.asynchronous as async_zarr
1414
1515
# create a new group using the asynchronous API
16-
root = await async_zarr.group(attributes={'foo': 'bar'})
16+
root = await async_zarr.create_group(attributes={'foo': 'bar'})
1717
root
1818
# create an array using the AsyncGroup
19-
z = await root.create_array(name='foo', shape=(100, ), chunks=(5, ), dtype='i4')
19+
z = await root.create_array(name='foo', shape=(100, ), chunks=(5, ), dtype=np.uint32)
2020
z
2121
# set and get items
2222
await z.setitem((slice(None), ), np.arange(0, 100, dtype=z.dtype))

0 commit comments

Comments
 (0)