Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
03eaa368
Commit
03eaa368
authored
Jul 07, 2021
by
Julia Garriga Ferrer
Browse files
[gui][noiseremoval/roi] Only show abort button if possible to abort
parent
15136040
Changes
2
Hide whitespace changes
Inline
Side-by-side
darfix/gui/noiseRemovalWidget.py
View file @
03eaa368
...
...
@@ -290,7 +290,8 @@ class NoiseRemovalWidget(qt.QMainWindow):
self
.
_method
=
self
.
_parametersDock
.
bsMethodsCB
.
currentText
()
self
.
_thread
.
setArgs
(
bg
,
self
.
_method
,
self
.
indices
,
step
,
chunks
)
self
.
_thread
.
finished
.
connect
(
self
.
_updateData
)
self
.
_parametersDock
.
abortBS
.
show
()
if
not
self
.
_update_dataset
.
in_memory
:
self
.
_parametersDock
.
abortBS
.
show
()
self
.
_thread
.
start
()
self
.
_setComputingState
(
True
)
...
...
@@ -303,7 +304,8 @@ class NoiseRemovalWidget(qt.QMainWindow):
self
.
_thread
=
OperationThread
(
self
,
self
.
_update_dataset
.
apply_hot_pixel_removal
)
self
.
_thread
.
setArgs
(
int
(
self
.
_size
),
self
.
indices
)
self
.
_thread
.
finished
.
connect
(
self
.
_updateData
)
self
.
_parametersDock
.
abortHP
.
show
()
if
not
self
.
_update_dataset
.
in_memory
:
self
.
_parametersDock
.
abortHP
.
show
()
self
.
_thread
.
start
()
self
.
_setComputingState
(
True
)
...
...
@@ -316,7 +318,8 @@ class NoiseRemovalWidget(qt.QMainWindow):
self
.
_thread
=
OperationThread
(
self
,
self
.
_update_dataset
.
apply_threshold_removal
)
self
.
_thread
.
setArgs
(
int
(
self
.
_bottom_threshold
))
self
.
_thread
.
finished
.
connect
(
self
.
_updateData
)
self
.
_parametersDock
.
abortTP
.
show
()
if
not
self
.
_update_dataset
.
in_memory
:
self
.
_parametersDock
.
abortTP
.
show
()
self
.
_thread
.
start
()
self
.
_setComputingState
(
True
)
...
...
darfix/gui/roiSelectionWidget.py
View file @
03eaa368
...
...
@@ -174,7 +174,8 @@ class ROISelectionWidget(qt.QWidget):
and show the new data in the stack. Dataset data is not yet replaced.
A new roi is created in the middle of the new stack.
"""
self
.
_abortB
.
show
()
if
not
self
.
_update_dataset
.
in_memory
:
self
.
_abortB
.
show
()
self
.
_applyB
.
setEnabled
(
False
)
self
.
_okB
.
setEnabled
(
False
)
self
.
roi
=
RectangleROI
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment