PySport / kloppy

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

Implement BodyPart qualifier for Statsbomb #82

Closed koenvo closed 3 years ago

BenjaminLarrousse commented 3 years ago

BodyPart qualifier exists for Goalkeeper, pass and shot.

We could add it inside _parse_pass() for pass and _parse_shot() for shots (inside the Statsbomb's serializer). A bit like "outcome" is created.

The goalkeeper part is not taken care of, I think ?

koenvo commented 3 years ago

@BenjaminLarrousse the goalkeeper is not implemented at all indeed. I would prefer to have BodyPart implemented for each provider first, and then add the GoalKeeper event(s).

Would you like to implement this for Statsbomb?

BenjaminLarrousse commented 3 years ago

Yes I do!

The way I see things:

Do you see things I should be careful about when implementing this?

koenvo commented 3 years ago

That sounds like a great plan @BenjaminLarrousse, and I think you mentioned all important parts 👍

BenjaminLarrousse commented 3 years ago

@koenvo I created a pull request. I think it's good.

Look at it when you have the time and let me know. Thanks

koenvo commented 3 years ago

Fixed in https://github.com/PySport/kloppy/pull/86