The Defs, Suite, Family, and Task from form a node hierarchy: Every Suite, Family, and Task must have a name. This name must be unique between the peers.
...
Code Block |
---|
| from ecflow import *
defs = Defs(
Suite("s1",
Family("f1",
[ Task("t{}".format(t)) for t in ("a", "b", "c")])))
defs.save_as_defs("test.def") |
|
Code Block |
---|
| from ecflow import *
defs = Defs().add(
Suite("s1").add(
Family("f1").add(
[ Task("t{}".format(t))
for t in ("a", "b", "c")])))
defs.save_as_defs("test.def") |
|
Code Block |
---|
| from ecflow import *
defs = Defs()
defs += Suite("s1")
defs.s1 += Family("f1")
defs.s1.f1 += [ Task("t{}".format(t))
for t in ("a", "b", "c")]
defs.save_as_defs("test.def") |
|
...