Commit 6daccbf9 authored by Henri Payno's avatar Henri Payno
Browse files

[orangecontrib] fix interaction since move to ewoksorange.bindings widgets

parent 1de4439f
Pipeline #56042 passed with stages
in 6 minutes and 19 seconds
......@@ -157,7 +157,6 @@ class AutobkOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = AutobkWindow(parent=self)
layout = gui.vBox(self.mainArea, "autobk").layout()
layout.addWidget(self._window)
......@@ -179,8 +178,7 @@ class AutobkOW(
def _updateProcess(self):
"""Update settings keeping current xas obj"""
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._larchSettings = self._window._parametersWindow.getParameters()
......
......@@ -132,7 +132,6 @@ class MbackOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = MbackWindow(parent=self)
layout = gui.vBox(self.mainArea, "mback").layout()
layout.addWidget(self._window)
......@@ -150,12 +149,10 @@ class MbackOW(
# set up (insure settings will be store
self._update_settings()
# self.handleNewSignals()
def _updateProcess(self):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._larchSettings = self._window._parametersWindow.getParameters()
......
......@@ -135,7 +135,6 @@ class Mback_normOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = Mback_normWindow(parent=self)
layout = gui.vBox(self.mainArea, "mback_norm").layout()
layout.addWidget(self._window)
......@@ -156,8 +155,7 @@ class Mback_normOW(
def _updateProcess(self):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._larchSettings = self._window._parametersWindow.getParameters()
......
......@@ -154,7 +154,6 @@ class PreEdgeOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = _PreEdgeWindow(parent=self)
layout = gui.vBox(self.mainArea, "pre edge").layout()
layout.addWidget(self._window)
......@@ -176,8 +175,7 @@ class PreEdgeOW(
def _updateProcess(self):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._larchSettings = self._window._parametersWindow.getParameters()
......
......@@ -169,7 +169,6 @@ class XFTFOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = XFTFWindow(parent=self)
layout = gui.vBox(self.mainArea, "xftf").layout()
layout.addWidget(self._window)
......@@ -190,8 +189,7 @@ class XFTFOW(
def _updateProcess(self):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._larchSettings = self._window._parametersWindow.getParameters()
......
......@@ -135,7 +135,6 @@ class ExafsOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = ExafsWindow()
layout = gui.vBox(self.mainArea, "exafs").layout()
layout.addWidget(self._window)
......@@ -155,12 +154,9 @@ class ExafsOW(
# signal / slot connection
self._window._pymcaWindow.sigChanged.connect(self._updateProcess)
# self.handleNewSignals()
def _updateProcess(self):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._larchSettings = self._window._pymcaWindow.getParameters()
......
......@@ -152,7 +152,6 @@ class FTOW(_ProcessForOrangeMixIn, ewokstaskclass=est.core.process.pymca.ft.PyMc
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = FTWindow(parent=self)
layout = gui.vBox(self.mainArea, "fourier transform").layout()
layout.addWidget(self._window)
......@@ -169,8 +168,7 @@ class FTOW(_ProcessForOrangeMixIn, ewokstaskclass=est.core.process.pymca.ft.PyMc
def _updateProcess(self, *arv, **kwargs):
self._update_settings()
if self._latest_xas_obj:
self.process(xas_obj=self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._pymcaSettings = self._window._pymcaWindow.getParameters()
......
......@@ -85,7 +85,6 @@ class KWeightOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
layout = gui.vBox(self.mainArea, "k weight").layout()
self._window = KWeightWindow(parent=self)
layout.addWidget(self._window)
......@@ -102,8 +101,7 @@ class KWeightOW(
def _updateProcess(self, *arv, **kwargs):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._kWeightSetting = self._window._k_spin_box.value()
......
......@@ -202,7 +202,6 @@ class NormalizationOW(
def __init__(self):
super().__init__()
self._latest_xas_obj = None
self._window = NormalizationWindow(parent=self)
layout = gui.vBox(self.mainArea, "normalization").layout()
layout.addWidget(self._window)
......@@ -228,8 +227,7 @@ class NormalizationOW(
def _updateProcess(self):
self._update_settings()
if self._latest_xas_obj:
self.process(self._latest_xas_obj)
self.handleNewSignals()
def _update_settings(self):
self._pymcaSettings = self._window._pymcaWindow.getParameters()
......
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