NamedTupleInterface.update_state()#
- NamedTupleInterface.update_state(position, model_state)[source]#
Updates and returns a model state given a position.
- Parameters:
position – A dictionary of variable or node names and values.
model_state (
Any) – A dictionary of node names and their correspondingNodeState.
- Return type:
Warning
The
model_statemust be up-to-date, i.e. it must not contain any outdated nodes. Updates can only be triggered through new variable or node values in theposition. If you supply amodel_statewith outdated nodes, these nodes and their outputs will not be updated.