Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can check definition for valid trigger expression and in-limits for existing definition file using the command:


Code Block
languagebash
titleCommand Line
ecflow_client --load=/my/home/exotic.def check_only



Code Block
languagepy
titlePython, Load from disk and check
from ecflow import Defs 
defs = Defs('/my/home/exotic.def')
print(defs.check())


This will check that the suite definition is correct and can be loaded into the server.

However, typically Definition files are built using the python API, where most checks are done whilst the definition is being built. (i.e. duplicate node names at the same level) 

Code Block
languagepy
titleCheck defs built with ecflow python API
import os
from ecflow import Defs,Suite,Task,Edit
    
home = os.path.join(os.getenv("HOME"),  "course")
defs = Defs(
        Suite('test',
            Edit(ECF_HOME=home),
            Task('t1'))) 
print(defs.check())

Simulation and Verification

...