Commit e3b4f2bb authored by Henri Payno's avatar Henri Payno
Browse files

[orangecontrib] fix _updateProcess, first update inputs then call...

[orangecontrib] fix _updateProcess, first update inputs then call handleNewSignals and not the other way around
parent a8bed186
Pipeline #56142 passed with stages
in 6 minutes and 16 seconds
......@@ -167,7 +167,7 @@ class AutobkOW(
def _updateProcess(self):
"""Update settings keeping current xas obj"""
self.handleNewSignals()
self.receiveDynamicInputs(
"autobk", self._window._parametersWindow.getParameters()
)
self.handleNewSignals()
......@@ -149,7 +149,7 @@ class MbackOW(
self._update_settings()
def _updateProcess(self):
self.handleNewSignals()
self.receiveDynamicInputs(
"mback", self._window._parametersWindow.getParameters()
)
self.handleNewSignals()
......@@ -149,7 +149,7 @@ class Mback_normOW(
self._window._parametersWindow.sigChanged.connect(self._updateProcess)
def _updateProcess(self):
self.handleNewSignals()
self.receiveDynamicInputs(
"mback_norm", self._window._parametersWindow.getParameters()
)
self.handleNewSignals()
......@@ -168,7 +168,7 @@ class PreEdgeOW(
self._window._parametersWindow.sigChanged.connect(self._updateProcess)
def _updateProcess(self):
self.handleNewSignals()
self.receiveDynamicInputs(
"pre_edge", self._window._parametersWindow.getParameters()
)
self.handleNewSignals()
......@@ -183,7 +183,7 @@ class XFTFOW(
self._window._parametersWindow.sigChanged.connect(self._updateProcess)
def _updateProcess(self):
self.handleNewSignals()
self.receiveDynamicInputs(
"xftf", self._window._parametersWindow.getParameters()
)
self.handleNewSignals()
......@@ -146,5 +146,5 @@ class ExafsOW(
self._window._pymcaWindow.sigChanged.connect(self._updateProcess)
def _updateProcess(self):
self.handleNewSignals()
self.receiveDynamicInputs("exafs", self._window._pymcaWindow.getParameters())
self.handleNewSignals()
......@@ -157,7 +157,5 @@ class FTOW(_ProcessForOrangeMixIn, ewokstaskclass=est.core.process.pymca.ft.PyMc
self._window._pymcaWindow.sigChanged.connect(self._updateProcess)
def _updateProcess(self, *arv, **kwargs):
self.handleNewSignals()
self.receiveDynamicInputs("ft", self._window._pymcaWindow.getParameters())
print(f"ft parameters are {self._window._pymcaWindow.getParameters()}")
self.handleNewSignals()
......@@ -91,8 +91,5 @@ class KWeightOW(
self._window._k_spin_box.valueChanged.connect(self._updateProcess)
def _updateProcess(self, *arv, **kwargs):
self.handleNewSignals()
self.receiveDynamicInputs("k_weight", self._window._k_spin_box.value())
def task_input_changed(self):
pass
self.handleNewSignals()
......@@ -217,10 +217,10 @@ class NormalizationOW(
)
def _updateProcess(self):
self.handleNewSignals()
self.receiveDynamicInputs(
"normalization", self._window._pymcaWindow.getParameters()
)
self.handleNewSignals()
def task_input_changed(self):
if "xas_obj" in self.task_inputs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment