Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
ewoksapps
est
Commits
2c0e2f09
Commit
2c0e2f09
authored
Oct 06, 2021
by
Henri Payno
Browse files
[ewoksorange] use inputsChanged instead of task_input_changed
parent
dd735fbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
orangecontrib/est/process.py
View file @
2c0e2f09
...
...
@@ -37,22 +37,16 @@ _logger = logging.getLogger(__file__)
class
_ProcessForOrangeMixIn
(
OWEwoksWidgetOneThread
):
def
_ewoksTaskFinishedCallback
(
self
):
with
self
.
_ewoksTaskFinishedContext
():
self
.
outputsChanged
()
super
().
_ewoksTaskFinishedCallback
()
def
handleNewSignals
(
self
):
self
.
input
sC
hanged
()
self
.
task_
input
_c
hanged
()
super
().
handleNewSignals
()
def
input
sC
hanged
(
self
):
def
task_
input
_c
hanged
(
self
):
pass
def
outputsChanged
(
self
):
# TODO: maybe we would expect a task_outputs to match the task_inputs
if
"xas_obj"
in
self
.
output_variables
:
xas_obj
=
self
.
output_variables
[
"xas_obj"
].
value
def
task_output_changed
(
self
):
if
"xas_obj"
in
self
.
task_outputs
:
xas_obj
=
self
.
task_outputs
[
"xas_obj"
].
value
if
isinstance
(
xas_obj
,
MissingData
):
_logger
.
warning
(
"no output data set. Unable to update the GUI"
)
return
...
...
orangecontrib/est/widgets/utils/e0calculator.py
View file @
2c0e2f09
...
...
@@ -111,8 +111,8 @@ class E0calculatorOW(
else
:
return
self
.
_widget
.
getE0
(
method
=
self
.
_methodToUse
)
def
input
sC
hanged
(
self
):
super
().
input
sC
hanged
()
def
task_
input
_c
hanged
(
self
):
super
().
task_
input
_c
hanged
()
self
.
_buttons
.
show
()
self
.
show
()
...
...
orangecontrib/est/widgets/utils/energyroi.py
View file @
2c0e2f09
...
...
@@ -105,8 +105,8 @@ class EnergyRoiOW(
def
setROI
(
self
,
roi
):
self
.
_widget
.
setROI
(
roi
=
roi
)
def
input
sC
hanged
(
self
):
super
(
EnergyRoiOW
,
self
).
input
sC
hanged
()
def
task_
input
_c
hanged
(
self
):
super
(
EnergyRoiOW
,
self
).
task_
input
_c
hanged
()
self
.
_buttons
.
show
()
self
.
show
()
...
...
orangecontrib/est/widgets/utils/roi.py
View file @
2c0e2f09
...
...
@@ -87,8 +87,8 @@ class RoiSelectionOW(
self
.
setROI
=
self
.
_widget
.
setROI
self
.
getROI
=
self
.
_widget
.
getROI
def
input
sC
hanged
(
self
):
super
().
input
sC
hanged
()
def
task_
input
_c
hanged
(
self
):
super
().
task_
input
_c
hanged
()
self
.
_buttons
.
show
()
self
.
show
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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