From 8cf775fbb72ed53f3bf06915e6b8b1044299183e Mon Sep 17 00:00:00 2001 From: Brianna Major Date: Wed, 2 Aug 2023 10:55:30 -0400 Subject: [PATCH] Move threshold mask changed signal Move threshold_mask_changed signal from threshold mask dialog to the apply_threshold_mask function. Signed-off-by: Brianna Major --- hexrd/ui/create_raw_mask.py | 1 + hexrd/ui/threshold_mask_dialog.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrd/ui/create_raw_mask.py b/hexrd/ui/create_raw_mask.py index 22d5bc6b7..9bb59b7d2 100644 --- a/hexrd/ui/create_raw_mask.py +++ b/hexrd/ui/create_raw_mask.py @@ -22,6 +22,7 @@ def apply_threshold_mask(): masks[idx] = mask results[det] = masks HexrdConfig().threshold_masks = results + HexrdConfig().threshold_mask_changed.emit('threshold') def create_threshold_mask(img): diff --git a/hexrd/ui/threshold_mask_dialog.py b/hexrd/ui/threshold_mask_dialog.py index 29ac414c4..fe17859c8 100644 --- a/hexrd/ui/threshold_mask_dialog.py +++ b/hexrd/ui/threshold_mask_dialog.py @@ -66,5 +66,4 @@ def accept(self): self.gather_input() HexrdConfig().threshold_values = self.values apply_threshold_mask() - HexrdConfig().threshold_mask_changed.emit('threshold') self.mask_applied.emit()