Skip to content

Commit 2fcb54d

Browse files
committed
add dtype to docstring examples
1 parent 41a7123 commit 2fcb54d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

zarr/core.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ def __getitem__(self, item):
225225
226226
>>> import zarr
227227
>>> import numpy as np
228-
>>> z = zarr.array(np.arange(100000000), chunks=1000000)
228+
>>> z = zarr.array(np.arange(100000000), chunks=1000000, dtype='i4')
229229
>>> z
230-
zarr.core.Array((100000000,), int64, chunks=(1000000,), order=C)
230+
zarr.core.Array((100000000,), int32, chunks=(1000000,), order=C)
231231
compression: blosc; compression_opts: {'clevel': 5, 'cname': 'blosclz', 'shuffle': 1}
232-
nbytes: 762.9M; nbytes_stored: 13.5M; ratio: 56.6; initialized: 100/100
232+
nbytes: 381.5M; nbytes_stored: 6.8M; ratio: 56.0; initialized: 100/100
233233
store: builtins.dict
234234
235235
Take some slices::
@@ -250,11 +250,11 @@ def __getitem__(self, item):
250250
>>> import zarr
251251
>>> import numpy as np
252252
>>> z = zarr.array(np.arange(100000000).reshape(10000, 10000),
253-
... chunks=(1000, 1000))
253+
... chunks=(1000, 1000), dtype='i4')
254254
>>> z
255-
zarr.core.Array((10000, 10000), int64, chunks=(1000, 1000), order=C)
255+
zarr.core.Array((10000, 10000), int32, chunks=(1000, 1000), order=C)
256256
compression: blosc; compression_opts: {'clevel': 5, 'cname': 'blosclz', 'shuffle': 1}
257-
nbytes: 762.9M; nbytes_stored: 16.8M; ratio: 45.5; initialized: 100/100
257+
nbytes: 381.5M; nbytes_stored: 10.0M; ratio: 38.0; initialized: 100/100
258258
store: builtins.dict
259259
260260
Take some slices::

0 commit comments

Comments
 (0)