Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore scaleoffset compression #385

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hsds/util/storUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _uncompress(data, compressor=None, shuffle=0, level=None, dtype=None, chunk_
msg += f", level: {level}"
log.debug(msg)
start_time = time.time()
if compressor:
if compressor and compressor != "scaleoffset":
if compressor in ("gzip", "deflate"):
# blosc referes to this as zlib
compressor = "zlib"
Expand Down Expand Up @@ -239,6 +239,7 @@ def _compress(data, compressor=None, level=5, shuffle=0, dtype=None, chunk_shape
log.debug(f"_compress(compressor={compressor}, shuffle={shuffle})")
start_time = time.time()
data_size = len(data)
cdata = None
if shuffle == 2:
# bit shuffle the data before applying the compressor
log.debug("bitshuffling data")
Expand All @@ -248,7 +249,7 @@ def _compress(data, compressor=None, level=5, shuffle=0, dtype=None, chunk_shape
log.error(f"got exception using bitshuffle: {e}")
shuffle = 0 # don't do any blosc shuffling

if compressor:
if compressor and compressor != "scaleoffset":
if compressor in ("gzip", "deflate"):
# blosc referes to this as zlib
compressor = "zlib"
Expand Down
Loading