Commit 7f0dd8e4 authored by payno's avatar payno
Browse files

fix typo setProperties -> set_properties

parent dcbbf356
......@@ -201,7 +201,7 @@ class AutobkOW(_ProcessForOrangeMixIn, OWWidget):
# PreEdgeOW )
process_obj = QLarch_autobk()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
......@@ -220,7 +220,7 @@ class AutobkOW(_ProcessForOrangeMixIn, OWWidget):
self._advancement.setMaxSpectrum(self._latest_xas_obj.n_spectrum)
process_obj = est.core.process.larch.autobk.Larch_autobk()
process_obj.advancement = self._advancement
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# hack (reason explained in the thread part)
......
......@@ -200,7 +200,7 @@ class MbackOW(_ProcessForOrangeMixIn, OWWidget):
# PreEdgeOW )
process_obj = QLarch_mback()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# update the processing thread
......@@ -218,7 +218,7 @@ class MbackOW(_ProcessForOrangeMixIn, OWWidget):
self._advancement.setMaxSpectrum(self._latest_xas_obj.n_spectrum)
process_obj = est.core.process.larch.mback.Larch_mback()
process_obj.advancement = self._advancement
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# hack (reason explained in the thread part)
......
......@@ -200,7 +200,7 @@ class Mback_normOW(_ProcessForOrangeMixIn, OWWidget):
# PreEdgeOW )
process_obj = QLarch_mback_norm()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# update the processing thread
......@@ -218,7 +218,7 @@ class Mback_normOW(_ProcessForOrangeMixIn, OWWidget):
self._advancement.setMaxSpectrum(self._latest_xas_obj.n_spectrum)
process_obj = est.core.process.larch.mback_norm.Larch_mback_norm()
process_obj.advancement = self._advancement
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# hack (reason explained in the thread part)
......
......@@ -242,7 +242,7 @@ class PreEdgeOW(_ProcessForOrangeMixIn, OWWidget):
# freeze
process_obj = QLarch_pre_edge()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# update the processing thread
......@@ -260,7 +260,7 @@ class PreEdgeOW(_ProcessForOrangeMixIn, OWWidget):
self._advancement.setMaxSpectrum(self._latest_xas_obj.n_spectrum)
process_obj = est.core.process.larch.pre_edge.Larch_pre_edge()
process_obj.advancement = self._advancement
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# hack (reason explained in the thread part)
......
......@@ -232,7 +232,7 @@ class XFTFOW(_ProcessForOrangeMixIn, OWWidget):
if _USE_THREAD is True:
process_obj = QLarch_xftf()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{
"_larchSettings": self._window._mainwidget._parametersWindow.getParameters()
}
......@@ -252,7 +252,7 @@ class XFTFOW(_ProcessForOrangeMixIn, OWWidget):
self._advancement.setMaxSpectrum(self._latest_xas_obj.n_spectrum)
process_obj = est.core.process.larch.xftf.Larch_xftf()
process_obj.advancement = self._advancement
process_obj.setProperties(
process_obj.set_properties(
{"_larchSettings": self._window._parametersWindow.getParameters()}
)
# hack (reason explained in the thread part)
......
......@@ -199,7 +199,7 @@ class ExafsOW(_ProcessForOrangeMixIn, OWWidget):
# setup the exafs process
process_obj = QPyMca_exafs()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_pymcaSettings": self._window._pymcaWindow.getParameters()}
)
......
......@@ -209,7 +209,7 @@ class FTOW(_ProcessForOrangeMixIn, OWWidget):
# setup the ft process
process_obj = QPyMca_ft()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_pymcaSettings": self._window._pymcaWindow.getParameters()}
)
......
......@@ -143,7 +143,9 @@ class KWeightOW(_ProcessForOrangeMixIn, OWWidget):
# setup the k weight process
process_obj = QPyMca_k_weight()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties({"_kWeightSetting": self._window._k_spin_box.value()})
process_obj.set_properties(
{"_kWeightSetting": self._window._k_spin_box.value()}
)
# update the processing thread
thread = self.getProcessingThread()
......
......@@ -269,7 +269,7 @@ class NormalizationOW(_ProcessForOrangeMixIn, OWWidget):
# setup the normalization process
process_obj = QPyMca_normalization()
process_obj._advancement.sigProgress.connect(self._setProgressValue)
process_obj.setProperties(
process_obj.set_properties(
{"_pymcaSettings": self._window._pymcaWindow.getParameters()}
)
......
......@@ -126,7 +126,7 @@ class RoiSelectionOW(OWWidget):
roi_process = est.core.process.roi.ROIProcess()
xas_roi = est.core.process.roi._ROI.from_silx_def(self.getROI()).to_dict()
roi_prop = {"roi": xas_roi}
roi_process.setProperties(roi_prop)
roi_process.set_properties(roi_prop)
# we want to keep the raw data in roi object, to be able to resize
# the roi (especially increase it size)
xas_obj = roi_process.process(xas_obj=self._widget.getXasObject())
......
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