Skip to content

Commit

Permalink
ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed Jan 17, 2025
1 parent 696ea5e commit 622a45f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scportrait/pipeline/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion src/scportrait/pipeline/segmentation/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 622a45f

Please sign in to comment.