@@ -44,7 +44,7 @@ scalar value::
44
44
>>> z[:] = 42
45
45
>>> z
46
46
Array((10000, 10000), int32, chunks=(1000, 1000), order=C)
47
- nbytes: 381.5M; nbytes_stored: 2.2M ; ratio: 170.4 ; initialized: 100/100
47
+ nbytes: 381.5M; nbytes_stored: 1.8M ; ratio: 215.1 ; initialized: 100/100
48
48
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
49
49
store: dict
50
50
@@ -116,7 +116,7 @@ Check that the data have been written and can be read again::
116
116
>>> z2 = zarr.open('example.zarr', mode='r')
117
117
>>> z2
118
118
Array((10000, 10000), int32, chunks=(1000, 1000), order=C)
119
- nbytes: 381.5M; nbytes_stored: 2.3M ; ratio: 163.9 ; initialized: 100/100
119
+ nbytes: 381.5M; nbytes_stored: 1.9M ; ratio: 204.5 ; initialized: 100/100
120
120
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
121
121
store: DirectoryStore
122
122
>>> np.all(z1[:] == z2[:])
@@ -135,7 +135,7 @@ can be increased or decreased in length. For example::
135
135
>>> z.resize(20000, 10000)
136
136
>>> z
137
137
Array((20000, 10000), float64, chunks=(1000, 1000), order=C)
138
- nbytes: 1.5G; nbytes_stored: 5.7M ; ratio: 268.5 ; initialized: 100/200
138
+ nbytes: 1.5G; nbytes_stored: 3.6M ; ratio: 422.3 ; initialized: 100/200
139
139
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
140
140
store: dict
141
141
@@ -151,19 +151,19 @@ which can be used to append data to any axis. E.g.::
151
151
>>> z = zarr.array(a, chunks=(1000, 100))
152
152
>>> z
153
153
Array((10000, 1000), int32, chunks=(1000, 100), order=C)
154
- nbytes: 38.1M; nbytes_stored: 1.9M; ratio: 20.0 ; initialized: 100/100
154
+ nbytes: 38.1M; nbytes_stored: 1.9M; ratio: 20.3 ; initialized: 100/100
155
155
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
156
156
store: dict
157
157
>>> z.append(a)
158
158
>>> z
159
159
Array((20000, 1000), int32, chunks=(1000, 100), order=C)
160
- nbytes: 76.3M; nbytes_stored: 3.8M; ratio: 20.0 ; initialized: 200/200
160
+ nbytes: 76.3M; nbytes_stored: 3.8M; ratio: 20.3 ; initialized: 200/200
161
161
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
162
162
store: dict
163
163
>>> z.append(np.vstack([a, a]), axis=1)
164
164
>>> z
165
165
Array((20000, 2000), int32, chunks=(1000, 100), order=C)
166
- nbytes: 152.6M; nbytes_stored: 7.6M ; ratio: 20.0 ; initialized: 400/400
166
+ nbytes: 152.6M; nbytes_stored: 7.5M ; ratio: 20.3 ; initialized: 400/400
167
167
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
168
168
store: dict
169
169
@@ -190,7 +190,7 @@ accepted by all array creation functions. For example::
190
190
... compressor=zarr.Blosc(cname='zstd', clevel=3, shuffle=2))
191
191
>>> z
192
192
Array((10000, 10000), int32, chunks=(1000, 1000), order=C)
193
- nbytes: 381.5M; nbytes_stored: 3.1M ; ratio: 121.1 ; initialized: 100/100
193
+ nbytes: 381.5M; nbytes_stored: 4.4M ; ratio: 87.6 ; initialized: 100/100
194
194
compressor: Blosc(cname='zstd', clevel=3, shuffle=2)
195
195
store: dict
196
196
@@ -261,7 +261,7 @@ Here is an example using the Zarr delta filter with the Blosc compressor:
261
261
... chunks= (1000 , 1000 ), filters= filters, compressor= compressor)
262
262
>>> z
263
263
Array((10000, 10000), int32, chunks=(1000, 1000), order=C)
264
- nbytes: 381.5M; nbytes_stored: 381.9K ; ratio: 1022.9 ; initialized: 100/100
264
+ nbytes: 381.5M; nbytes_stored: 633.4K ; ratio: 616.7 ; initialized: 100/100
265
265
filters: Delta(dtype=int32)
266
266
compressor: Blosc(cname='zstd', clevel=1, shuffle=1)
267
267
store: dict
@@ -480,7 +480,7 @@ data. E.g.::
480
480
store: dict
481
481
>>> zarr.array(a, chunks=(1000, 1000), order='F')
482
482
Array((10000, 10000), int32, chunks=(1000, 1000), order=F)
483
- nbytes: 381.5M; nbytes_stored: 9.5M ; ratio: 40.1 ; initialized: 100/100
483
+ nbytes: 381.5M; nbytes_stored: 9.2M ; ratio: 41.6 ; initialized: 100/100
484
484
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
485
485
store: dict
486
486
@@ -510,20 +510,20 @@ Here is an example storing an array directly into a Zip file::
510
510
>>> z[:] = 42
511
511
>>> z
512
512
Array((1000, 1000), int32, chunks=(100, 100), order=C)
513
- nbytes: 3.8M; nbytes_stored: 25.7K ; ratio: 152.0 ; initialized: 100/100
513
+ nbytes: 3.8M; nbytes_stored: 21.8K ; ratio: 179.2 ; initialized: 100/100
514
514
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
515
515
store: ZipStore
516
516
>>> import os
517
517
>>> os.path.getsize('example.zip')
518
- 34721
518
+ 30721
519
519
520
520
Re-open and check that data have been written::
521
521
522
522
>>> store = zarr.ZipStore('example.zip', mode='r')
523
523
>>> z = zarr.Array(store)
524
524
>>> z
525
525
Array((1000, 1000), int32, chunks=(100, 100), order=C)
526
- nbytes: 3.8M; nbytes_stored: 25.7K ; ratio: 152.0 ; initialized: 100/100
526
+ nbytes: 3.8M; nbytes_stored: 21.8K ; ratio: 179.2 ; initialized: 100/100
527
527
compressor: Blosc(cname='lz4', clevel=5, shuffle=1)
528
528
store: ZipStore
529
529
>>> z[:]
0 commit comments