Skip to content

Orientation

kloppy.domain.Orientation

Bases: Enum

The attacking direction of each team in a dataset.

ATTRIBUTE DESCRIPTION
BALL_OWNING_TEAM

The team that is currently in possession of the ball plays from left to right.

ACTION_EXECUTING_TEAM

The team that executes the action plays from left to right. Used in event stream data only. Equivalent to "BALL_OWNING_TEAM" for tracking data.

HOME_AWAY

The home team plays from left to right in the first period. The away team plays from left to right in the second period.

AWAY_HOME

The away team plays from left to right in the first period. The home team plays from left to right in the second period.

STATIC_HOME_AWAY

The home team plays from left to right in both periods.

STATIC_AWAY_HOME

The away team plays from left to right in both periods.

NOT_SET

The attacking direction is not defined.

Notes

The attacking direction is not defined for penalty shootouts in the HOME_AWAY, AWAY_HOME, STATIC_HOME_AWAY, and STATIC_AWAY_HOME orientations. This period is ignored in orientation transforms involving one of these orientations and keeps its original attacking direction.

BALL_OWNING_TEAM class-attribute instance-attribute

BALL_OWNING_TEAM = 'ball-owning-team'

ACTION_EXECUTING_TEAM class-attribute instance-attribute

ACTION_EXECUTING_TEAM = 'action-executing-team'

HOME_AWAY class-attribute instance-attribute

HOME_AWAY = 'home-away'

AWAY_HOME class-attribute instance-attribute

AWAY_HOME = 'away-home'

STATIC_HOME_AWAY class-attribute instance-attribute

STATIC_HOME_AWAY = 'fixed-home-away'

STATIC_AWAY_HOME class-attribute instance-attribute

STATIC_AWAY_HOME = 'fixed-away-home'

NOT_SET class-attribute instance-attribute

NOT_SET = 'not-set'