Skip to content

Negative ball z coordinate when using second spectrum tracking data with get_game_from_kloppy #352

Description

@Joe-McMullen

When the ball is dead and not identified in second spectrum tracking data, default ball coordinates [0, 0, -10] are used.
This leads to a SchemaError when creating the game object using the get_game_from_kloppy function.
This can be prevented by setting the only_alive parameter to true when loading the tracking dataset in kloppy, however this raises a warning and impacts the tracking/event synchronisation.

This is a documented issue in kloppy (see PySport/kloppy#523). If the suggested pull request is implemented and there is an option to remove frames where the ball is not identified, may still be some issues:

  • how to ensure the exclude_missing_ball_frames parameter use in kloppy prior to creating the game object (other than the SchemaError discussed above)
  • will the tracking/event synchroniser be impacted by the missing frames

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions