Skip to content

Conversation

@UnravelSports
Copy link
Contributor

Currently we only support "fifaId", "uefaId" and "heId" as HawkEye identifiers, because we cannot be sure this is all of them, we allow the user to pass an optional object_id parameter.

UnravelSports [JB] added 2 commits May 30, 2025 13:20
Copy link
Contributor

@probberechts probberechts left a comment

Choose a reason for hiding this comment

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

Only had a quick look at code, but it's not immediately clear to me how this is supposed to work.

limit: Optional[int] = None,
coordinates: Optional[str] = None,
show_progress: Optional[bool] = False,
object_id: Optional[str] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add this to the docstring?

super().__init__(limit, sample_rate, coordinate_system)
self.object_id: HawkEyeObjectIdentifier = None
self.object_id: HawkEyeObjectIdentifier = (
None if object_id is None else object_id
Copy link
Contributor

Choose a reason for hiding this comment

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

This is identical to

self.object_id = object_id

Copy link
Contributor

Choose a reason for hiding this comment

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

I also do not see where the user-provided object_id is taken into account.

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'm running into some issues because I removed this branch, but the goal of the object_id is to allow users to specify an object_id that is not any of those 3 (heId, fifaId or uefaId) in a case when they get their data and it does not have any of these keys to identify player and team objects.

I'll redo this PR at some point.

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