Proposed feature would divide task parameteres into static and dynamic. Static ones are described in args section of the configuration while dynamic ones are in inputs section.
Static parameters do not change once task is described. Dynamic ones take their values based on the output of the previously launched tasks. Minimal example is as follows:
Here, DistanceTask should have **kwargs in its run method with names start_position and end_position. OMTool would read these values from the PotentialCenterTask's output under the key position. This key should hold valid value that would be passed into the run method.
Several new fields would be added to the task description:
id: textual identificator of the task. Should be unique. If now specified, defaults to task_{i}, where i is the index number of the task in the configuration file.
inputs: dictionary of keywoard arguments that would be passed into the run method. For now all of the values are interpreted as id.field paths. In future there might be some mechanism that allows to pass static values there.
Proposed feature would divide task parameteres into static and dynamic. Static ones are described in
args
section of the configuration while dynamic ones are ininputs
section.Static parameters do not change once task is described. Dynamic ones take their values based on the output of the previously launched tasks. Minimal example is as follows:
Here, DistanceTask should have
**kwargs
in itsrun
method with namesstart_position
andend_position
. OMTool would read these values from thePotentialCenterTask
's output under the keyposition
. This key should hold valid value that would be passed into therun
method.Several new fields would be added to the task description:
id
: textual identificator of the task. Should be unique. If now specified, defaults totask_{i}
, wherei
is the index number of the task in the configuration file.inputs
: dictionary of keywoard arguments that would be passed into therun
method. For now all of the values are interpreted asid.field
paths. In future there might be some mechanism that allows to pass static values there.