Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
ewoksapps
est
Commits
8ba5956d
Commit
8ba5956d
authored
Jul 23, 2021
by
payno
Browse files
[convert to ewoks] clean a few 'run' function signature
parent
6fd0b898
Changes
3
Hide whitespace changes
Inline
Side-by-side
est/core/process/io.py
View file @
8ba5956d
...
...
@@ -66,9 +66,10 @@ class DumpXasObject(Process):
"""definition of the process"""
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
:
xas_object
=
self
.
inputs
.
xas_obj
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
):
...
...
est/core/process/noise.py
View file @
8ba5956d
...
...
@@ -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
...
...
est/core/process/roi.py
View file @
8ba5956d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment