ecflow.RepeatString

class ecflow.RepeatString

Bases: pybind11_object

Allows a node to be repeated using a string list.

A node can only have one repeat. The repeat can be referenced in trigger expressions.

Constructor:

RepeatString(variable,list)
   string variable:     The name of the repeat. The current index of the string list can be
                        referenced in trigger expressions using the variable name
   vector list:         The list of enumerations

Usage:

t = Task('t1',
         RepeatString('COLOR', [ 'red', 'green', 'blue' ] ))

Accessor methods:

current_index() -> int
   Zero-based index into the string list.
current_value() -> str
   The string at the current index, or '' if out of bounds.
RepeatString.current_index(self: ecflow.RepeatString) int

Return the zero-based index into the string list.

RepeatString.current_value(self: ecflow.RepeatString) object

Return the string at the current index.

RepeatString.end(self: ecflow.RepeatString) int
RepeatString.name(self: ecflow.RepeatString) str

Return the name of the repeat.

RepeatString.start(self: ecflow.RepeatString) int
RepeatString.step(self: ecflow.RepeatString) int