...
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_suitefamily(f)
f.add_task(t) |
|
Code Block |
---|
| from ecflow import *
defs = Defs().add(
Suite('s1').add(
Family('f1').add(
Task('t1')))) |
|
Code Block |
---|
language | py |
---|
title | Using Constructor |
---|
| from ecflow import *
defs = 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')))
|
Code Block |
---|
language | py |
---|
title | Hybrid. mix and match |
---|
| defs = Defs(Suite('s1'))
defs.s1 += Family('f1') + Task('t1') |
|
...
The following example shows how suites, families and tasks are a group of tasks could be created in a Python definition file.
...