Skip to content

Commit 622a45f

Browse files
committed
ruff linting
1 parent 696ea5e commit 622a45f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/scportrait/pipeline/extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, *args, **kwargs):
5757
self.overwrite_run_path = self.overwrite
5858

5959
def _get_compression_type(self):
60-
if (self.compression == True) or (self.compression == "lzf"):
60+
if (self.compression is True) or (self.compression == "lzf"):
6161
self.compression_type = "lzf"
6262
elif self.compression == "gzip":
6363
self.compression_type = "gzip"

src/scportrait/pipeline/segmentation/workflows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ def _check_for_mask_matching_filtering(self) -> None:
655655
if "filter_status" in self.config.keys():
656656
self.filter_match_masks = True
657657
self.mask_matching_filtering_threshold = 0.95
658-
Warning("filter_status is deprecated, please use match_masks instead. Will use default settings for mask matching.")
658+
Warning(
659+
"filter_status is deprecated, please use match_masks instead. Will use default settings for mask matching."
660+
)
659661

660662
# default behaviour that this filtering should be performed, otherwise another additional step is required before extraction
661663
self.filter_match_masks = True

0 commit comments

Comments
 (0)