NamedTupleInterface.extract_position()#

NamedTupleInterface.extract_position(position_keys, model_state)[source]#

Extracts a position from a model state.

Parameters:
  • position_keys (Sequence[str]) – An iterable of variable or node names.

  • model_state (Any) – A dictionary of node names and their corresponding NodeState.