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

Fix Wyscout deserialization of teams and players #235

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

probberechts
Copy link
Contributor

The structure of the Wyscout v2 test file does not correspond to the specs in the official documentation. This commit fixes the test file and adapts the deserializer accordingly.

Fixes #234

The structure of the Wyscout v2 test file does not correspond to the specs in the official documentation. This commit fixes the test file and adapts the deserializer accordingly.

Fixes PySport#234
Copy link
Collaborator

@JanVanHaaren JanVanHaaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The gsmId (Global Sports Media) field has also been removed from the player objects in the API response but I think we can keep it for now for compatibility purposes.

@probberechts
Copy link
Contributor Author

I noticed that this PR will break loading the Wyscout open data. The preprocessed version of this dataset in koenvo/wyscout-soccer-match-event-dataset would have to be updated as well.

@koenvo
Copy link
Contributor

koenvo commented Nov 24, 2023

Thanks for this fix!

Let me see how to update this on the open data part. Will probably need to generate a new set under a different directory in the repository and point kloppy to the new location.

@koenvo koenvo merged commit 91e6c28 into PySport:master Nov 24, 2023
18 checks passed
@koenvo koenvo mentioned this pull request Nov 24, 2023
koenvo added a commit to koenvo/kloppy that referenced this pull request Dec 4, 2023
@koenvo koenvo added this to the 3.14 - Pi milestone Dec 29, 2023
@probberechts probberechts deleted the fix/wyscoutv2-teams branch January 1, 2024 10:04
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.

Incorrect Wyscout v2 test data?
3 participants