From 622a45f7b925687f2467c1ab2f00125f4131b4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sophia=20M=C3=A4dler?= <15019107+sophiamaedler@users.noreply.github.com> Date: Fri, 17 Jan 2025 19:33:03 +0100 Subject: [PATCH] ruff linting --- src/scportrait/pipeline/extraction.py | 2 +- src/scportrait/pipeline/segmentation/workflows.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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