PySport / kloppy

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

[Wyscout v3] add parsing of carry event #323

Closed DriesDeprest closed 1 month ago

DriesDeprest commented 1 month ago

Add support for the creation of a carry event for Wyscout v3 event data.

"carry" is a secondary event type, thus I've added the potential recognition of a "carry" event at the bottom of the if / elif statements for recognizing the event type. This way, we give priority to primary event types for determining the kloppy event type.

We derive the end timestamp as the timestamp of the next event, if it is present, otherwise it is said equal to the timestamp.