File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,8 @@ the delta filter::
236
236
237
237
To disable compression, set ``compressor=None `` when creating an array.
238
238
239
+ To disable compression, set ``compression=None `` when creating an array.
240
+
239
241
.. _tutorial_sync :
240
242
241
243
Filters
Original file line number Diff line number Diff line change @@ -729,10 +729,11 @@ def __repr__(self):
729
729
730
730
# storage size info
731
731
r += '\n nbytes: %s' % human_readable_size (self .nbytes )
732
- if self .nbytes_stored > 0 :
733
- r += '; nbytes_stored: %s' % human_readable_size (
734
- self .nbytes_stored )
735
- r += '; ratio: %.1f' % (self .nbytes / self .nbytes_stored )
732
+ if self .compression :
733
+ if self .nbytes_stored > 0 :
734
+ r += '; nbytes_stored: %s' % human_readable_size (
735
+ self .nbytes_stored )
736
+ r += '; ratio: %.1f' % (self .nbytes / self .nbytes_stored )
736
737
n_chunks = reduce (operator .mul , self .cdata_shape )
737
738
r += '; initialized: %s/%s' % (self .initialized , n_chunks )
738
739
Original file line number Diff line number Diff line change 21
21
BZ2 (),
22
22
Blosc (),
23
23
]
24
+
24
25
if not PY2 :
25
26
from zarr .codecs import LZMA
26
27
compressors .append (LZMA ())
You can’t perform that action at this time.
0 commit comments