...
The following example show different ways of adding node hierarchy.
Code Block |
---|
| import ecflow
defs = ecflow.Defs()
s = ecflow.Suite('s1')
f = ecflow.Family('f1')
t = ecflow.Task('t1')
defs.add_suite(s)
s.add_suite(f)
f.add_task(t) |
|
Code Block |
---|
| from ecflow import |
|
ecflowecflow.
defs.add(
Suite('s1').add(
Family('f1').add(
Task('t1')))) |
|
Code Block |
---|
language | py |
---|
title | Using Constructor |
---|
| from ecflow import *
defs = ecflow.Defs(
Suite('s1',
Family('f1',
Task('t1')))) |
|
Code Block |
---|
language | py |
---|
title | Using + with parenthesis |
---|
| from ecflow import *
defs = Defs() + (Suite('s1') + (Family('f1') + Task('t1')))
|
|
The following example shows how suites, families and tasks are created in a Python definition file.
...