FunctionCall¶
Call/apply a function with some positional arguments and/or named ("keyword") arguments.
This will invoke a function that is declared elsewhere using the Function node and return the result. The arguments apply in the order in which they are listed in the function's graph [signature] parameter. Besides positional arguments, Call can also bind named placeholders before evaluating the graph. Note though that placeholders that are bound by any lambda in the contained graph cannot be assigned by name, i.e., only free placeholders can be assigned this way. More Info... Version 1.0.0
Ports/Properties¶
function¶
Function to call. This can be the name of a function that is declared elsewhere, or it can also be a callable object, for example as returned by the Lambda node. When used in scripts, this can also be any other callable Python object. Lastly, if the as_python option is set, this may also be the name of a Python function or an in-place defined lambda function (see also as_python option).
stateful¶
Persist graph's state across calls. If this is unset, the call behaves like a regular function call such that the graph's state is reset on every call. If set, the call behaves statefully, that is, any stateful nodes in the called graph (e.g., filters) will retain their state across calls. Thus, the call behaves as if the graph was materialized at the call size. Different call sites to the same graph still have independent state (i.e., different calls are different materializations).
as_python¶
If set to unsafe, the funcname will be interpreted as a Python function name or in-place defined lambda expression. In this case, BE SURE to never pass untrusted inputs into the funcname argument.
needs_deepcopy¶
If set, the function call will perform a deep copy of all input arguments before passing them to the function. This is useful when the function modifies its input arguments and you want to prevent these modifications from propagating back to the caller.
pos1¶
Positional Argument 1.
pos2¶
Positional Argument 2.
pos3¶
Positional Argument 3.
pos4¶
Positional Argument 4.
pos5¶
Positional Argument 5.
pos6¶
Positional Argument 6.
pos7¶
Positional Argument 7.
pos8¶
Positional Argument 8.
pos9¶
Positional Argument 9.
posN¶
Additional positional arguments.. .
name1¶
Keyword argument name 1.
val1¶
Keyword argument value 1.
name2¶
Keyword argument name 2.
val2¶
Keyword argument value 2.
name3¶
Keyword argument name 3.
val3¶
Keyword argument value 3.
name4¶
Keyword argument name 4.
val4¶
Keyword argument value 4.
name5¶
Keyword argument name 5.
val5¶
Keyword argument value 5.
name6¶
Keyword argument name 6.
val6¶
Keyword argument value 6.
name7¶
Keyword argument name 7.
val7¶
Keyword argument value 7.
name8¶
Keyword argument name 8.
val8¶
Keyword argument value 8.
name9¶
Keyword argument name 9.
val9¶
Keyword argument value 9.
nameN¶
Additional keyword argument names.. .
valN¶
Additional keyword argument values.. .
argdict¶
Additional keyword arguments.. .
result¶
Result of function call.
snapshot¶
Snapshot of function graph after call.
pos0¶
Positional Argument 0 (deprecated).
name0¶
Keyword argument name 0 (deprecated).
val0¶
Keyword argument value 0 (deprecated).
funcname¶
Function to call.
funchandle¶
Function to call.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.