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
071bb54f
Commit
071bb54f
authored
Aug 19, 2021
by
Julia Garriga Ferrer
Browse files
[gui][shift] Update fitlered shift array with values of dx dy widgets
parent
f6f7b961
Pipeline
#53004
passed with stage
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
darfix/gui/shiftCorrectionWidget.py
View file @
071bb54f
...
...
@@ -117,6 +117,8 @@ class ShiftCorrectionWidget(qt.QMainWindow):
self
.
_inputDock
.
widget
.
correctionB
.
clicked
.
connect
(
self
.
correct
)
self
.
_inputDock
.
widget
.
abortB
.
clicked
.
connect
(
self
.
abort
)
self
.
_inputDock
.
widget
.
dxLE
.
editingFinished
.
connect
(
self
.
_updateShiftValue
)
self
.
_inputDock
.
widget
.
dyLE
.
editingFinished
.
connect
(
self
.
_updateShiftValue
)
self
.
_inputDock
.
widget
.
_findShiftB
.
clicked
.
connect
(
self
.
_findShift
)
self
.
_chooseDimensionDock
.
widget
.
filterChanged
.
connect
(
self
.
_filterStack
)
self
.
_chooseDimensionDock
.
widget
.
stateDisabled
.
connect
(
self
.
_wholeStack
)
...
...
@@ -187,6 +189,10 @@ class ShiftCorrectionWidget(qt.QMainWindow):
self
.
thread_detection
.
start
()
self
.
computingSignal
.
emit
(
True
)
def
_updateShiftValue
(
self
):
if
self
.
_filtered_shift
is
not
None
:
self
.
_filtered_shift
[
self
.
_dimension
[
1
]]
=
[
self
.
_inputDock
.
widget
.
getDy
(),
self
.
_inputDock
.
widget
.
getDx
()]
def
_updateShift
(
self
):
self
.
_inputDock
.
widget
.
_findShiftB
.
setEnabled
(
True
)
self
.
thread_detection
.
finished
.
disconnect
(
self
.
_updateShift
)
...
...
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