Group.value_from()

Group.value_from()#

Group.value_from(model_state, name)[source]#

Retrieves the value of a node or variable that is a member of the group from a model state.

Parameters:
  • model_state (dict[str, NodeState]) – The state of a Liesel model, i.e. a state.

  • name (str) – The name of the node or variable within this group.

Return type:

Any

Returns:

The value of the node or variable.