PySport / kloppy

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

[StatsBomb] Bodypart qualifiers are incorrect for clearances #220

Closed probberechts closed 10 months ago

probberechts commented 1 year ago

Description of bug The StatsBomb event data deserializer infers the body part used to perform a clearance from the list of related events. This is incorrect. Typically, the related event refers to the pass that was intercepted. It does not correspond to the clearance!

Suggested fix For recent versions of the data (>= v1.1), the body part is recorded for clearances and can simply be retrieved from the annotation of the event. See for example match 3775631.

For old versions of the data (< v1.1), the body part is not recorded for clearances and I think there is simply no way to infer it. See for example match 7584.