Commit ccff46e8 authored by payno's avatar payno

Deal with several case of steps if is defined from a DataReduction or from a tuple...

parent 1a820516
......@@ -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')
......
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