Commit ce62c780 authored by payno's avatar payno

[orangecontrib] remove copy of the object made in each widget

parent b2dbd107
......@@ -180,7 +180,7 @@ class AutobkOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the normalization process
......
......@@ -179,7 +179,7 @@ class MbackOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the normalization process
......
......@@ -179,7 +179,7 @@ class Mback_normOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the normalization process
......
......@@ -188,7 +188,7 @@ class PreEdgeOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the normalization process
......
......@@ -208,7 +208,7 @@ class XFTFOW(_ProcessForOrangeMixIn, OWWidget):
self._window._parametersWindow._mainwidget._kWeightSB.setEnabled(False)
else:
self._window._parametersWindow._mainwidget._kWeightSB.setEnabled(True)
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the normalization process
......
......@@ -178,7 +178,7 @@ class ExafsOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the exafs process
......
......@@ -188,7 +188,7 @@ class FTOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the ft process
......
......@@ -135,7 +135,7 @@ class KWeightOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the k weight process
......
......@@ -239,7 +239,7 @@ class NormalizationOW(_ProcessForOrangeMixIn, OWWidget):
_logger.warning('There is some processing on going already, will'
'not process the new dataset')
self._latest_xas_obj = xas_obj.copy(create_h5_file=True)
self._latest_xas_obj = xas_obj
self._startProcess()
# setup the normalization process
......
......@@ -128,7 +128,7 @@ class RoiSelectionOW(OWWidget):
roi_process.setProperties(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().copy())
xas_obj = roi_process.process(xas_obj=self._widget.getXasObject())
self.Outputs.res_xas_obj.send(xas_obj)
except Exception as e:
_logger.error(e)
......
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