Commit 8ba5956d authored by payno's avatar payno
Browse files

[convert to ewoks] clean a few 'run' function signature

parent 6fd0b898
......@@ -66,9 +66,10 @@ class DumpXasObject(Process):
"""definition of the process"""
return "write xas object to a file"
def run(self, xas_object=None):
if xas_object is None:
def run(self):
xas_object = self.inputs.xas_obj
if xas_object is None:
raise ValueError("xas_obj should be provided")
if isinstance(xas_object, dict):
xas_object = XASObject.from_dict(xas_object)
if not isinstance(xas_object, XASObject):
......
......@@ -169,7 +169,7 @@ class NoiseProcess(Process):
if "polynomial_order" in properties:
self._polynomial_order = properties["polynomial_order"]
def run(self, xas_obj):
def run(self):
"""
:param xas_obj: object containing the configuration and spectra to process
......
......@@ -174,7 +174,7 @@ class ROIProcess(Process):
xas_obj.spectra.reshape((roi.size[1], roi.size[0]))
return xas_obj
def run(self, xas_obj):
def run(self):
"""
:param xas_obj: object containing the configuration and spectra to process
......
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