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

[Opta] Apply _fix_unintentional_ball_touches only to passes #741

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

probberechts
Copy link
Member

The _fix_unintentional_ball_touches method was added to deal with "unintentional ball touch" events (type_id=61 + outcome=0). These are typically deflections. It sets the result of an action to "success" if the team manages to keep possession.

But this should only be applied to passes (i.e., actions for which the result depends on keeping possession). For example, the result of a shot should depend on whether a goal was scored.

Fixes #725

The _fix_unintentional_ball_touches method was added to deal with "unintentional
ball touch" events (type_id=61 + outcome=0). These are typically deflections. It
sets the result of an action to "success" if the team manages to keep
possession.

But this should only be applied to passes (i.e., actions for wich the result
depends on keeping possession). For example, the result of a shot should depend
on whether a goal was scored.

Fixes #725
@probberechts probberechts added the bug Something isn't working label Jun 22, 2024
@probberechts probberechts merged commit 430c9c5 into master Jun 22, 2024
20 checks passed
@probberechts probberechts deleted the fix/opta-deflections branch June 23, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Opta] Deflected non-goal shots should have result="fail"
1 participant