You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
![](/download/attachments/70942812/for.png?version=1&modificationDate=1485346151124&api=v2&effects=drop-shadow)
#!/usr/bin/env python
from ecf import *
PARAMS = ["u", "v", "t", "r", ]
def process(): return Task("process")
def family_for(): return (
Family("for").add(process(),
Repeat(kind="integer", name="STEP",
start=1, end=240, step=3)),
Family("loop").add(process(),
Repeat("PARAM", PARAMS, kind="string")),
Family("parallel").add(
Limit("lim", 2), Inlimit("lim"),
[Family(par).add(Edit(PARAM=par),
process().add(Label("info", par)))
for par in PARAMS]),
Family("explode").add(Limit("lim", 2), Inlimit("lim"),
[Task("t%d" % num) for num in xrange(1, 5+1)]))