Skip to content

Commit 73c1ea4

Browse files
committed
fix readme after repr tweak
1 parent 0cdff6d commit 73c1ea4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Fill it with some data::
4141

4242
>>> z[:] = np.arange(10000000, dtype='i4').reshape(10000, 1000)
4343
>>> z
44-
zarr.ext.Array((10000, 1000), int32, chunks=(1000, 100), nbytes=38.1M, cbytes=2.0M, cratio=19.3, cname=blosclz, clevel=5, shuffle=1)
44+
zarr.ext.Array((10000, 1000), int32, chunks=(1000, 100), cname='blosclz', clevel=5, shuffle=1)
45+
nbytes: 38.1M; cbytes: 2.0M; ratio: 19.3
4546

4647
Obtain a NumPy array::
4748

@@ -58,24 +59,29 @@ Resize the array and add more data::
5859

5960
>>> z.resize(20000, 1000)
6061
>>> z
61-
zarr.ext.Array((20000, 1000), int32, chunks=(1000, 100), nbytes=76.3M, cbytes=2.0M, cratio=38.5, cname=blosclz, clevel=5, shuffle=1)
62+
zarr.ext.Array((20000, 1000), int32, chunks=(1000, 100), cname='blosclz', clevel=5, shuffle=1)
63+
nbytes: 76.3M; cbytes: 2.0M; ratio: 38.5
6264
>>> z[10000:, :] = np.arange(10000000, dtype='i4').reshape(10000, 1000)
6365
>>> z
64-
zarr.ext.Array((20000, 1000), int32, chunks=(1000, 100), nbytes=76.3M, cbytes=4.0M, cratio=19.3, cname=blosclz, clevel=5, shuffle=1)
66+
zarr.ext.Array((20000, 1000), int32, chunks=(1000, 100), cname='blosclz', clevel=5, shuffle=1)
67+
nbytes: 76.3M; cbytes: 4.0M; ratio: 19.3
6568

6669
For convenience, an `append` method is also available, which can be used to
6770
append data to any axis:
6871

6972
>>> a = np.arange(10000000, dtype='i4').reshape(10000, 1000)
7073
>>> z = zarr.array(a, chunks=(1000, 100))
7174
>>> z
72-
zarr.ext.Array((10000, 1000), int32, chunks=(1000, 100), nbytes=38.1M, cbytes=2.0M, cratio=19.3, cname=blosclz, clevel=5, shuffle=1)
75+
zarr.ext.Array((10000, 1000), int32, chunks=(1000, 100), cname='blosclz', clevel=5, shuffle=1)
76+
nbytes: 38.1M; cbytes: 2.0M; ratio: 19.3
7377
>>> z.append(a+a)
7478
>>> z
75-
zarr.ext.Array((20000, 1000), int32, chunks=(1000, 100), nbytes=76.3M, cbytes=3.6M, cratio=21.2, cname=blosclz, clevel=5, shuffle=1)
79+
zarr.ext.Array((20000, 1000), int32, chunks=(1000, 100), cname='blosclz', clevel=5, shuffle=1)
80+
nbytes: 76.3M; cbytes: 3.6M; ratio: 21.2
7681
>>> z.append(np.vstack([a, a]), axis=1)
7782
>>> z
78-
zarr.ext.Array((20000, 2000), int32, chunks=(1000, 100), nbytes=152.6M, cbytes=7.6M, cratio=20.2, cname=blosclz, clevel=5, shuffle=1)
83+
zarr.ext.Array((20000, 2000), int32, chunks=(1000, 100), cname='blosclz', clevel=5, shuffle=1)
84+
nbytes: 152.6M; cbytes: 7.6M; ratio: 20.2
7985

8086
Tuning
8187
------

0 commit comments

Comments
 (0)