Skip to content

Commit

Permalink
Fixed gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-as committed Jan 17, 2025
1 parent d922f3e commit a2419bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scportrait/pipeline/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ def __init__(self, *args, **kwargs):
self.overwrite_run_path = self.overwrite

def _get_compression_type(self):
if (self.compression) or (self.compression == "lzf"):
if (self.compression == True) or (self.compression == "lzf"):
self.compression_type = "lzf"
return self.compression_type
elif self.compression == "gzip":
self.compression_type = "gzip"
return self.compression_type
self.compression_type = None
else:
self.compression_type = None
self.log(f"Compression algorithm: {self.compression_type}")
return self.compression_type

def _check_config(self):
Expand Down

0 comments on commit a2419bb

Please sign in to comment.