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

Time-based positions + MinutedPlayed Aggregator #326

Merged
merged 19 commits into from
Jun 20, 2024

Conversation

koenvo
Copy link
Contributor

@koenvo koenvo commented Jun 11, 2024

This PR adds:

  1. A TimeContainer to handle properties that change during a match, like Player Position, or Team Formation
  2. initial_position as the Position of a player from the metadata. The Player.position is pointing to the new TimeContainer.last value
  3. EventDatasetAggregator and MinutesPlayedAggregator. This returns the minutes played for a player, possible with position.

@koenvo koenvo marked this pull request as ready for review June 11, 2024 12:29
@koenvo koenvo changed the title Feature/initial player position Time-based positions + MinutedPlayed Aggregator Jun 12, 2024
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.

Nice contribution @koenvo! I only have a few minor suggestions.

kloppy/domain/models/common.py Show resolved Hide resolved
kloppy/domain/models/event.py Outdated Show resolved Hide resolved
kloppy/domain/models/time.py Show resolved Hide resolved
@koenvo koenvo requested a review from probberechts June 19, 2024 19:25
@JanVanHaaren JanVanHaaren requested review from JanVanHaaren and removed request for probberechts June 20, 2024 07:50
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.

Great change! This pull request looks good to me.

@koenvo koenvo merged commit 9f86dee into PySport:master Jun 20, 2024
19 checks passed
@koenvo koenvo deleted the feature/initial-player-position branch June 20, 2024 08:46
@koenvo koenvo added this to the 3.15 milestone Jun 20, 2024
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.

3 participants