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