from:
%include "../head.h" echo "I am part of a suite that lives in %ECF_HOME%" %include "../tail.h" |
to:
%include <head.h> echo "I am part of a suite that lives in %ECF_HOME%" %include <tail.h> |
suite‘s, family‘s and task‘s are called node‘s.
# Definition of the suite test. suite test edit ECF_INCLUDE "$HOME/course" # replace '$HOME' with the path to your home directory edit ECF_HOME "$HOME/course" family f1 task t1 task t2 endfamily endsuite |
If you are using the Suite Definition API: Update $HOME/course/test.py
import os from ecflow import Defs,Suite,Family,Task,Edit def create_family_f1(): return Family("f1", Task("t1"), Task("t2")) print("Creating suite definition") home = os.path.join(os.getenv("HOME"), "course") defs = Defs( Suite("test", Edit(ECF_INCLUDE=home,ECF_HOME=home), create_family_f1())) print(defs) print("Checking job creation: .ecf -> .job0") print(defs.check_job_creation()) print("Saving definition to file 'test.def'") defs.save_as_defs("test.def") |
The hierarchy is shown as a tree in ecflow_ui
ECF_INCLUDE
directory.
|