Commit 7245aba5 authored by Henri Payno's avatar Henri Payno
Browse files

[orangecontrib][autobk] fix configuration, -larchSetting -> _settings (manage by the Process class)

parent f56f4cc1
......@@ -145,7 +145,7 @@ class AutobkOW(_ProcessForOrangeMixIn, OWWidget):
process_function = xas.core.process.larch.autobk.Larch_autobk
_larchSettings = Setting(dict())
_settings = Setting(dict())
"""Store the configuration of the PyMca XASClass"""
def __init__(self):
......@@ -157,8 +157,8 @@ class AutobkOW(_ProcessForOrangeMixIn, OWWidget):
self._window.xasObjViewer.setWindowTitle('spectra')
# manage settings
if self._larchSettings != dict():
self._window._parametersWindow.setParameters(self._larchSettings)
if self._settings != dict():
self._window._parametersWindow.setParameters(self._settings)
# connect signals / slots
self._window._parametersWindow.sigChanged.connect(self._updateProcess)
......@@ -170,7 +170,7 @@ class AutobkOW(_ProcessForOrangeMixIn, OWWidget):
self.process(self._latest_xas_obj)
def _update_settings(self):
self._larchSettings = self._window._parametersWindow.getParameters()
self._settings = self._window._parametersWindow.getParameters()
def process(self, xas_obj):
if xas_obj is None:
......
Supports Markdown
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