Stats Perform
kloppy.statsperform
Functions for loading Stats Perform data.
load_event
Load Stats Perform event data.
| PARAMETER | DESCRIPTION |
|---|---|
ma1_data
|
A MA1 json or xml feed containing the lineup information.
TYPE:
|
ma3_data
|
A MA3 json or xml feed containing the events.
TYPE:
|
pitch_length
|
The length of the pitch (in meters).
TYPE:
|
pitch_width
|
The width of the pitch (in meters).
TYPE:
|
event_types
|
A list of event types to load.
TYPE:
|
coordinates
|
The coordinate system to use.
TYPE:
|
event_factory
|
A custom event factory.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
EventDataset
|
The parsed event data. |
Source code in kloppy/_providers/statsperform.py
load_tracking
Load Stats Perform tracking data.
| PARAMETER | DESCRIPTION |
|---|---|
ma1_data
|
A json or xml feed containing the lineup information.
TYPE:
|
ma25_data
|
A txt file linked in the MA25 Match Tracking Feed; also known as an OPT file.
TYPE:
|
tracking_system
|
The system that generated the tracking data.
TYPE:
|
pitch_length
|
The length of the pitch (in meters).
TYPE:
|
pitch_width
|
The width of the pitch (in meters).
TYPE:
|
sample_rate
|
Sample the data at a specific rate.
TYPE:
|
limit
|
Limit the number of frames to load to the first
TYPE:
|
coordinates
|
The coordinate system to use.
TYPE:
|
only_alive
|
Only include frames in which the game is not paused.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TrackingDataset
|
The parsed tracking data. |