Commit 84a0666e authored by Marc Betoule's avatar Marc Betoule
Browse files

commit a few bugs in the new multiplex management

parent c47334f6
...@@ -168,14 +168,14 @@ class TaskList: ...@@ -168,14 +168,14 @@ class TaskList:
output_set = method (*a) output_set = method (*a)
if directive.where: if directive.where:
f = multiplex._filter(parent_list, directive.where) f = multiplex._where(parent_list, directive.where)
output_set = filter(f, output_set) output_set = filter(f, output_set)
if directive.group_by: if directive.group_by:
output_set = multiplex._group(output_set, parent_list, directive.group_by) output_set = multiplex._group(output_set, parent_list, directive.group_by)
## e for each task to push ## e for each task to push
lst_task = [Task(seg, make_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] lst_task = [Task(seg, make_dict([(r[2],r[0]) for r in e]), status='queued', parents=list(set([r[1] for r in e if r[1] is not None]))) for e in output_set]
return lst_task return lst_task
#multiplex cross_prod group_by "0"
p = glob_seg('third', 'Preambule.txt') p = glob_seg('third', 'Preambule.txt')
t = glob_seg('second','test.txt') t = glob_seg('second','test.txt')
import subprocess import subprocess
......
#multiplex cross_prod where 'first in ["Robin", "Arthur"]'
tf = get_data_fn('test.txt') tf = get_data_fn('test.txt')
# Dude makes some kind of heavy computation # Dude makes some kind of heavy computation
i = 0 i = 0
......
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