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

[StatsPerform] Bugfixes for tracking deserializer #309

Closed

Conversation

probberechts
Copy link
Contributor

  • Use the correct coordinate system and pitch dimensions (fixes Incorrect Stats Perform coordinate system #299).
  • Remove the "BALL_OWNING_TEAM" flag. The Stats Perform tracking data does not define which team has possession.
  • The periods field of the metadata should be a list, not a dict.
  • Skip frames in which the game is paused when only_alive = True.

- Use the correct coordinate system and pitch dimensions
- Remove "BALL_OWNING_TEAM" flag
- Metadata.periods should be a list, not a dict
- Skip frames for which ball_state = DEAD when only_alive = True

Fixes PySport#299.
@@ -11,12 +11,23 @@
def load(
meta_data: FileLike, # Stats Perform MA1 file - xml or json - single game, live data & lineups
raw_data: FileLike, # Stats Perform MA25 file - txt - tracking data
provider_name: str = "sportvu",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am aware that this parameter could be confusing. Are there any ideas for a better name? Stats Perform distributes the tracking data from different systems and keeps the coordinate system of the original tracking data provider (SportVU, Tracab, SecondSpectrum, etc.). Hence, you must provide the name of the original provider of the data to know the coordinate system.

@probberechts
Copy link
Contributor Author

Superseded by #310.

@koenvo koenvo modified the milestone: 3.15 Apr 19, 2024
@probberechts probberechts deleted the fix/statsperform-iss-299 branch June 20, 2024 11:01
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 Stats Perform coordinate system
2 participants