Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dribbled past duel type #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DriesDeprest
Copy link
Contributor

PR related to #257.

We introduced A DRIBBLED_PAST DuelType and added the TACKLE qualifier to duels for Opta & StatsBomb.

@DriesDeprest
Copy link
Contributor Author

I think the checks failed due to a network issue. @JanVanHaaren @koenvo could you re-run the checks?

@JanVanHaaren
Copy link
Collaborator

@DriesDeprest Done!

@JanVanHaaren
Copy link
Collaborator

@probberechts Would you mind having a quick look at this pull request?

@probberechts
Copy link
Contributor

Would it be possible to add the TACKLE qualifier also to the Wyscout deserializers such that a "tackle" is at least consistently defined everywhere?

Intuitively, there should be a DRIBBLED_PAST event for each successful dribble. Would it be possible to write a test for this? I am not familiar with the StatsBomb "Dribbled Past" and Opta "Challenge" events and this would convince me that my interpretation of their documentation is correct.

@JanVanHaaren
Copy link
Collaborator

JanVanHaaren commented Jan 25, 2024

Intuitively, there should be a DRIBBLED_PAST event for each successful dribble. Would it be possible to write a test for this? I am not familiar with the StatsBomb "Dribbled Past" and Opta "Challenge" events and this would convince me that my interpretation of their documentation is correct.

In StatsBomb's event data, the Dribbled Past event is typically paired with a completed Dribble event but can also be paired with an incompleted Dribble event. For example, the data for one of our recent games includes one Dribbled Past event that is paired with an incompleted Dribble event. The overrun flag for the Dribble event is set to true though. However, like you suggested, a completed Dribble event always seems to be paired with a Dribbled Past event.

{
  "id": "dd23312c-596e-4f63-b5a0-b75967299e9d",
  "type": {
    "id": 14,
    "name": "Dribble"
  },
  "related_events": [
    "17d2402c-0685-4dba-9e7b-dbeb055d02e8"
  ],
  "dribble": {
    "overrun": true,
    "outcome": {
      "id": 9,
      "name": "Incomplete"
    }
  }
}

{
  "id": "17d2402c-0685-4dba-9e7b-dbeb055d02e8",
  "type": {
    "id": 39,
    "name": "Dribbled Past"
  },
  "related_events": [
    "dd23312c-596e-4f63-b5a0-b75967299e9d"
  ]
}

@DriesDeprest
Copy link
Contributor Author

Would it be possible to add the TACKLE qualifier also to the Wyscout deserializers such that a "tackle" is at least consistently defined everywhere?

Will do this!

How Intuitively, there should be a DRIBBLED_PAST event for each successful dribble. Would it be possible to write a test for this?

How would you implement this?
For StatsBomb we can use the related_event_ids property to check for all successful dribbles whether one of their related events is an event with the DRIBBLED_PAST qualifier
But for Opta & Wyscout we don't have these related event ID's, how would you go about this?

@probberechts
Copy link
Contributor

How would you implement this?

count(type = DRIBBLED_PAST) == count(type = DRIBBLE & outcome = SUCCESS)

@koenvo
Copy link
Contributor

koenvo commented Oct 25, 2024

@DriesDeprest any update on this one?

@DriesDeprest
Copy link
Contributor Author

Not really, I've had other priorities. I'll let you know if it changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants