ModelInterface.extract_position()#

abstract ModelInterface.extract_position(position_keys, model_state)[source]#

Extracts the position from the model state given a sequence of position keys.

The returned position must have the same order as the supplied key sequence.

Return type

NewType(Position, dict[str, Any])