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

Fix GoalKeeperActionType.SAVE coordinates for Wyscout v2 #260

Closed probberechts closed 6 months ago

probberechts commented 7 months ago

Wyscout v2 does not store the coordinates of the "Save attempt" event as regular start coordinates. Instead, they should be inferred from the end coordinates and be inverted.

For example, in

  'positions': [{'y': 100, 'x': 100}, {'y': 66, 'x': 20}]

the start location is x=100-66, y=100-20.