Skip to content

Commit

Permalink
Save range, even if values are -infinity/infinity
Browse files Browse the repository at this point in the history
Signed-off-by: Brianna Major <[email protected]>
  • Loading branch information
bnmajor committed Aug 8, 2023
1 parent 8cf775f commit 19cb962
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions hexrd/ui/threshold_mask_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,8 @@ def setup_connections(self):

def gather_input(self):
self.values.clear()

if not np.isinf(val := self.ui.first_value.value()):
self.values.append(val)

if not np.isinf(val := self.ui.second_value.value()):
self.values.append(val)
self.values.append(self.ui.first_value.value())
self.values.append(self.ui.second_value.value())

def accept(self):
self.gather_input()
Expand Down

0 comments on commit 19cb962

Please sign in to comment.