PySport / kloppy

kloppy: standardizing soccer tracking- and event data
https://kloppy.pysport.org
BSD 3-Clause "New" or "Revised" License
328 stars 55 forks source link

[Wyscout v2] Fix keeper save coordinates #272

Open probberechts opened 6 months ago

probberechts commented 6 months ago

The start coordinates of goalkeeper save events should be retrieved from postions[1] and inverted for the keeper's own goal.

{
            "eventId": 9,
            "subEventName": "Save attempt",
            "tags": [
                {
                    "id": 1209
                },
                {
                    "id": 1801
                }
            ],
            "playerId": 3429,
            "positions": [
                {
                    "y": 0,
                    "x": 0
                },
                {
                    "y": 43,
                    "x": 11
                }
            ],
            "matchId": 2058007,
            "eventName": "Save attempt",
            "teamId": 5629,
            "matchPeriod": "1H",
            "eventSec": 1834.504524,
            "subEventId": 91,
            "id": 261446311
        }