Skip to content

Conversation

@mrkthmpsn
Copy link

Picking up some of the things highlighted in #442

Of those items:

  • CardColor and Recovery are already being processed
  • This PR adds Interception and Clearance events quite straight-forwardly
  • This PR also adds most of the TacklingGame variations that I found in open data files. Of those that I identified, I'm only unsure about WinnerResult=="layoff" variations
  • I haven't touched the identified pass and shot qualifiers

The PR also adds a logic step to order events by timestamp before iterating over the events list to parse them. In the open data files, I found that some of these events were all at the end of the file, which interfered with assigning match periods (everything got put in the second half).

As mentioned in #442, this PR also adds one of the open event and metadata files as test files. There's a new deserialization test based on these files, as the old/existing test files don't include a lot of them.

mrkthmpsn and others added 16 commits May 6, 2025 19:48
Taken from the IDSSE dataset, to be used when testing updates to the Sportec deserializer
I'm not sure whether this is just the test file or is something systematic with Sportec data, that certain event types are grouped at the end of the file despite their timestamps placing them throughout the match
Based on the data attributes and visualising some examples of events, I think the interpretations in the code comments are correct. I suspect that 'layoff' is a kind of 'loose ball'/'no outcome' variant, but I'm not confident on that interpretation or what it would be classed as in kloppy
- fix starting position of sub players
- fix dataset flags
- add formation
- add metadata tests
@probberechts probberechts force-pushed the mrkthmpsn/add-missing-sportec-features branch from 52f09ea to 9bd4f5b Compare December 28, 2025 22:43
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.

2 participants