Skip to content

Commit

Permalink
improve behaviour of mask matching behaviour for deprecated config keys
Browse files Browse the repository at this point in the history
will use the default parameters as if nothing was specified
  • Loading branch information
sophiamaedler committed Jan 17, 2025
1 parent a2419bb commit 144025f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scportrait/pipeline/segmentation/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,9 @@ def _check_for_mask_matching_filtering(self) -> None:
else:
# add deprecation warning for old config setup
if "filter_status" in self.config.keys():
Warning("filter_status is deprecated, please use match_masks instead Will not perform filtering.")
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.")

# 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 144025f

Please sign in to comment.