-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(opta): apply _fix_unintentional_ball_touches only to passes
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
- Loading branch information
1 parent
27e7b50
commit 430c9c5
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters