Commit 329cf21f authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

remaining bug from last commit

parent 1e85a305
......@@ -93,7 +93,7 @@ def gather(*args):
>>> print(len(gather(['a','b'],[1,2,3],[0.1,0.2,0.3,0.4])))
1
"""
l = []
for l_ in args:
l.extend(l_)
return [l]
l = []
for l_ in args:
l.extend(l_)
return [l]
......@@ -166,7 +166,7 @@ class TaskList:
output_set = method (*a)
## e for each task to push
lst_task = [Task(seg, [{r[2]:r[0]} for r in e], status='queued', parents=[r[1] for r in e if r[1] is not None]) for e in output_set]
lst_task = [Task(seg, dict([(r[2],r[0]) for r in e]), status='queued', parents=[r[1] for r in e if r[1] is not None]) for e in output_set]
for l in lst_task:
print str(l)+"parents: "
print l.parents
......
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