Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
payno
id06workflow
Commits
ccff46e8
Commit
ccff46e8
authored
Nov 20, 2018
by
payno
Browse files
Deal with several case of steps if is defined from a DataReduction or from a tuple...
parent
1a820516
Changes
1
Hide whitespace changes
Inline
Side-by-side
id06workflow/core/experiment/__init__.py
View file @
ccff46e8
...
...
@@ -117,7 +117,10 @@ class Experiment(object):
if
reductionStep
in
(
None
,
[]):
reductionStep
=
[(
1
,
1
,
1
)]
if
len
(
reductionStep
)
is
1
:
steps
=
reductionStep
[
0
].
steps
if
isinstance
(
reductionStep
[
0
],
DataReduction
):
steps
=
reductionStep
[
0
].
steps
else
:
steps
=
reductionStep
[
0
]
else
:
raise
NotImplementedError
(
'cannot manage several reduction steps for the moment'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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