Trac context¶
Definition¶
When it runs, every model is provided a context through which it can access parameters, inputs and other resources that are defined in the model schema.

Everything defined in the model schema will be available in the context. If the model runtime cannot provide all the inputs, the model will not launch.
Example methods¶
Several methods and functions are available for the model to interact with the context, for example:
Get the value of a model parameter that was defined using define_parameters() method |
|
Get an input defined using the define_input() method as a Pandas dataframe |
|
Returns an output defined using the define_input() as a Pandas dataframe |
|
… |
… |
Note
For more details on class methods and helper functions see TracContext
.