diff --git a/src/scportrait/pipeline/extraction.py b/src/scportrait/pipeline/extraction.py index 1d032ebe..505f6081 100644 --- a/src/scportrait/pipeline/extraction.py +++ b/src/scportrait/pipeline/extraction.py @@ -57,7 +57,7 @@ def __init__(self, *args, **kwargs): self.overwrite_run_path = self.overwrite def _get_compression_type(self): - if (self.compression == True) or (self.compression == "lzf"): + if (self.compression is True) or (self.compression == "lzf"): self.compression_type = "lzf" elif self.compression == "gzip": self.compression_type = "gzip" diff --git a/src/scportrait/pipeline/segmentation/workflows.py b/src/scportrait/pipeline/segmentation/workflows.py index d5f2614d..94ed8c44 100644 --- a/src/scportrait/pipeline/segmentation/workflows.py +++ b/src/scportrait/pipeline/segmentation/workflows.py @@ -655,7 +655,9 @@ def _check_for_mask_matching_filtering(self) -> None: if "filter_status" in self.config.keys(): self.filter_match_masks = True self.mask_matching_filtering_threshold = 0.95 - Warning("filter_status is deprecated, please use match_masks instead. Will use default settings for mask matching.") + Warning( + "filter_status is deprecated, please use match_masks instead. Will use default settings for mask matching." + ) # default behaviour that this filtering should be performed, otherwise another additional step is required before extraction self.filter_match_masks = True