Skip to content

Commit

Permalink
adapt to python-blosc 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
esc committed Aug 7, 2020
1 parent fb109e3 commit 905a800
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test_cmdline/test_codec.cram
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Try using an alternative codec ('lz4' should be available):
blpk: 'offsets':
blpk: \[13496,[1-9]\d*,[1-9]\d*,[1-9]\d*,[1-9]\d*,...\] (re)
blpk: First chunk blosc header:
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 33), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 1048576), ('ctbytes', 129151)])
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 33), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 524288), ('ctbytes', 134215)])
blpk: First chunk blosc flags:
blpk: OrderedDict([('byte_shuffle', True), ('pure_memcpy', False), ('bit_shuffle', False), ('split_blocks', False), ('codec', 'lz4')])
$ rm data.dat.blp
Expand Down
4 changes: 2 additions & 2 deletions test_cmdline/test_info.cram
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Get some info on the file:
blpk: 'offsets':
blpk: \[13496,[1-9]\d*,[1-9]\d*,[1-9]\d*,[1-9]\d*,...\] (re)
blpk: First chunk blosc header:
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 1), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 1048576), ('ctbytes', 136509)])
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 1), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 524288), ('ctbytes', 366674)])
blpk: First chunk blosc flags:
blpk: OrderedDict([('byte_shuffle', True), ('pure_memcpy', False), ('bit_shuffle', False), ('split_blocks', False), ('codec', 'blosclz')])
$ blpk i data.dat.blp
Expand All @@ -47,7 +47,7 @@ Get some info on the file:
blpk: 'offsets':
blpk: \[13496,[1-9]\d*,[1-9]\d*,[1-9]\d*,[1-9]\d*,...\] (re)
blpk: First chunk blosc header:
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 1), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 1048576), ('ctbytes', 136509)])
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 1), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 524288), ('ctbytes', 366674)])
blpk: First chunk blosc flags:
blpk: OrderedDict([('byte_shuffle', True), ('pure_memcpy', False), ('bit_shuffle', False), ('split_blocks', False), ('codec', 'blosclz')])
$ rm data.dat.blp
Expand Down
2 changes: 1 addition & 1 deletion test_cmdline/test_metadata.cram
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Add metadata to the file:
blpk: meta_comp_size: 6[2-5]\.0B \(6[2-5]B\) (re)
blpk: user_codec: b?'' (re)
blpk: First chunk blosc header:
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 1), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 1048576), ('ctbytes', 136509)])
blpk: OrderedDict([('version', 2), ('versionlz', 1), ('flags', 1), ('typesize', 8), ('nbytes', 1048576), ('blocksize', 524288), ('ctbytes', 366674)])
blpk: First chunk blosc flags:
blpk: OrderedDict([('byte_shuffle', True), ('pure_memcpy', False), ('bit_shuffle', False), ('split_blocks', False), ('codec', 'blosclz')])
$ blpk decompress data.dat.blp data.dat.dcmp
Expand Down
10 changes: 5 additions & 5 deletions test_cmdline/test_verbose_debug.cram
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Get more information using --verbose:
blpk: nchunks: 153
blpk: chunk_size: 1.0M (1048576B)
blpk: last_chunk_size: 602.0K (616448B)
blpk: output file size: \d{1}\.[1-9]\d*M \([1-9]\d*B\) (re)
blpk: output file size: \d*\.[1-9]\d*M \([1-9]\d*B\) (re)
blpk: compression ratio: [1-9]\d*\.\d+ (re)
blpk: done
$ blpk --verbose decompress data.dat.blp data.dat.dcmp
blpk: using [0-9]+ threads (re)
blpk: getting ready for decompression
blpk: input file is: 'data.dat.blp'
blpk: output file is: 'data.dat.dcmp'
blpk: input file size: \d{1}\.[1-9]\d*M (re)
blpk: input file size: \d*\.[1-9]\d*M (re)
blpk: output file size: 152.59M
blpk: decompression ratio: [1-9]\d*.\d+ (re)
blpk: done
Expand All @@ -46,15 +46,15 @@ Get more information using --verbose, but with metadata:
blpk: nchunks: 153
blpk: chunk_size: 1.0M (1048576B)
blpk: last_chunk_size: 602.0K (616448B)
blpk: output file size: \d{1}\.[1-9]\d*M \([1-9]\d*B\) (re)
blpk: output file size: \d*\.[1-9]\d*M \([1-9]\d*B\) (re)
blpk: compression ratio: [1-9]\d*\.\d+ (re)
blpk: done
$ blpk --verbose decompress data.dat.blp data.dat.dcmp
blpk: using [0-9]+ threads (re)
blpk: getting ready for decompression
blpk: input file is: 'data.dat.blp'
blpk: output file is: 'data.dat.dcmp'
blpk: input file size: \d{1}\.[1-9]\d*M (re)
blpk: input file size: \d*\.[1-9]\d*M (re)
blpk: read compressed metadata of size: '6[2-5]' (re)
blpk: output file size: 152.59M
blpk: decompression ratio: [1-9]\d*\.\d+ (re)
Expand Down Expand Up @@ -146,7 +146,7 @@ Try using --debug
blpk: getting ready for decompression
blpk: input file is: 'data.dat.blp'
blpk: output file is: 'data.dat.dcmp'
blpk: input file size: \d{1}\.[1-9]\d*M (re)
blpk: input file size: \d*\.[1-9]\d*M (re)
blpk: reading bloscpack header
blpk: bloscpack_header_raw: b?'.*' (re)
blpk: bloscpack header: BloscpackHeader(format_version=3, offsets=True, metadata=False, checksum='adler32', typesize=8, chunk_size=52428800, last_chunk=2713600, nchunks=4, max_app_chunks=40)
Expand Down

0 comments on commit 905a800

Please sign in to comment.