DictInterface.extract_position()

DictInterface.extract_position()#

DictInterface.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 variable or node names and values.

Return type:

NewType(Position, dict[str, Any])