Versions Compared

Key

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

...

The code above will suffice for the wast vast majority of cases. However if you have several suites, and are only interested in a subset.  Then , then the method above is not the most optimal. This method will be lot quicker.

Code Block
languagepy
titlech_register
import ecflow
ci = ecflow.Client("my_host",3141)               # replace the host and port with your own.
suites_of_interest = [ 's1', 's2' ]              # These are the *only* suites that I an interested in
ci.ch_register(False,suites_of_interest)         # register interest in the suites
ci._sync_local()                                 # sync_loacllocal() will now ONLY return the suites s1,s2
print ci.get_defs()
ci.ch_drop()                                     # remember to remove our registration, otherwise it stays in the server

Here is more full blown example, demonstrating the performance differences, in retrieving all the suites, and in retrieving suites, via registration.

...