Expose c-blosc's bitshuffle capability (fix #87) #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Shuffling is now a choice between no shuffling, byte shuffling, or bit
shuffling. This changes the type of the
shuffle
keyword incompress
from
Bool
to its supertypeInteger
. The previous "no shuffling"(
shuffle=false
) and "byte shuffling" (shuffle=true
) options mapcleanly onto the
Integer
assignments used by the Blosc library. Theseconstants have been added to the Blosc module:
NOSHUFFLE
(0) means do no shuffling (same as the oldfalse
)SHUFFLE
(1) means do byte shuffling (same as the oldtrue
)BITSHUFFLE
(1) means do bit shuffling (not previously supported)The
shuffled
field inCompressionInfo
has also been widened toInteger
to allow it to properly reflect all types of shuffling and thecompressor_info
function properly decodes the flags to set theshuffled
field appropriately.The tests have been updated to exercise all three shuffle modes.