Skip to content

Commit 046b2c7

Browse files
committed
fix doctests after blosc upgrade
1 parent 640bb9d commit 046b2c7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/tutorial.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ print some diagnostics, e.g.::
178178
: blocksize=0)
179179
Store type : builtins.dict
180180
No. bytes : 400000000 (381.5M)
181-
No. bytes stored : 3702484 (3.5M)
182-
Storage ratio : 108.0
181+
No. bytes stored : 3242241 (3.1M)
182+
Storage ratio : 123.4
183183
Chunks initialized : 100/100
184184

185185
If you don't specify a compressor, by default Zarr uses the Blosc
@@ -270,8 +270,8 @@ Here is an example using a delta filter with the Blosc compressor::
270270
Compressor : Blosc(cname='zstd', clevel=1, shuffle=SHUFFLE, blocksize=0)
271271
Store type : builtins.dict
272272
No. bytes : 400000000 (381.5M)
273-
No. bytes stored : 328085 (320.4K)
274-
Storage ratio : 1219.2
273+
No. bytes stored : 648605 (633.4K)
274+
Storage ratio : 616.7
275275
Chunks initialized : 100/100
276276

277277
For more information about available filter codecs, see the `Numcodecs
@@ -394,8 +394,8 @@ property. E.g.::
394394
Compressor : Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0)
395395
Store type : zarr.storage.DictStore
396396
No. bytes : 8000000 (7.6M)
397-
No. bytes stored : 34840 (34.0K)
398-
Storage ratio : 229.6
397+
No. bytes stored : 33460 (32.7K)
398+
Storage ratio : 239.1
399399
Chunks initialized : 10/10
400400

401401
>>> baz.info
@@ -1143,8 +1143,8 @@ ratios, depending on the correlation structure within the data. E.g.::
11431143
Compressor : Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0)
11441144
Store type : builtins.dict
11451145
No. bytes : 400000000 (381.5M)
1146-
No. bytes stored : 15857834 (15.1M)
1147-
Storage ratio : 25.2
1146+
No. bytes stored : 10502688 (10.0M)
1147+
Storage ratio : 38.1
11481148
Chunks initialized : 100/100
11491149
>>> f = zarr.array(a, chunks=(1000, 1000), order='F')
11501150
>>> f.info
@@ -1157,8 +1157,8 @@ ratios, depending on the correlation structure within the data. E.g.::
11571157
Compressor : Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0)
11581158
Store type : builtins.dict
11591159
No. bytes : 400000000 (381.5M)
1160-
No. bytes stored : 7233241 (6.9M)
1161-
Storage ratio : 55.3
1160+
No. bytes stored : 5530511 (5.3M)
1161+
Storage ratio : 72.3
11621162
Chunks initialized : 100/100
11631163

11641164
In the above example, Fortran order gives a better compression ratio. This is an

0 commit comments

Comments
 (0)