datawork.api.invocation¶
Module implementing Tool and Invocation.
-
class
datawork.api.invocation.
Invocation
(tool, args)[source]¶ Called tool connecting input data to output data.
This class represents a
Tool
with fully or partially specified inputs, ready for computation and caching. It is responsible for providing cache identifiers for all its outputs.-
invoke
(*args)[source]¶ Handle partial evaluation by invoking with more arguments.
The result of this method is another
Invocation
.If the same arguments (meaning the same objects, identified by python id) are provided, the same invocation object is returned.
-
o
¶ Implement a getter for evaluating outputs on demand.
-
populate
()[source]¶ Compute the outputs by calling a tool’s ‘.run()’ method.
This method organizes all of the input
data.Data
andconfig.Option
parameters and passes them to the statictool.Tool.run()
method.
-