from ecflow import Defs,Suite,Variable,Edit defs = Defs() s1 = defs.add_suite("s1") s1.add_variable("HELLO","world") # name, value s1.add_variable({ "NAME":"value", "NAME2":"value2", "NAME3":"value3", "NAME4":4 } ) s1.add_variable(Variable("FRED","bloggs")) s1.add_variable(Variable("BILL","1")) |
The following examples show alternative styles that produce the same definition:
|
|
|
Note: that although we are using class Edit as a short cut, the objects that are added are still of type Variable.