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

Add under pressure qualifier #296

Open DriesDeprest opened 7 months ago

DriesDeprest commented 7 months ago

I want to add UnderPressureQualifier as a possible qualifier for our events and create support for parsing this with StatsBomb.

JanVanHaaren commented 6 months ago

@probberechts Do you have any feedback on this pull request? Thanks.

probberechts commented 6 months ago

If an event (e.g., a clearance) is executed under pressure and the ball goes out subsequently, the UnderPressureQualifier is added to the resulting Clearance and BallOutEvent. Since the BallOutEvent is not an on-the-ball action, I don't think it should get the UnderPressureQualifier.

Apart from that, this PR looks good to me.

DriesDeprest commented 6 months ago

Thanks for the feedback @probberechts! Adjusted the code accordingly.

DriesDeprest commented 3 months ago

@koenvo, this should be ready to merge!