Python
MorphGlobalContext
MorphGlobalContext
is a type of context variable that can be given as an argument to functions that can be executed in Morph.
The context can automatically receive data from Morph annotations, results from other functions or external arguments.
property | Description |
---|---|
data | Stores the output results of functions annotated with @morph.load_data . |
vars | Stores arguments of functions annotated with @morph.variables . |
Example of use
By annotating with load_data
and variables
, it is possible to accept a context as an argument to a function.
See the respective description pages for information on how to use these functions.