-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix sportec current #217
Fix sportec current #217
Conversation
@@ -584,6 +572,13 @@ def deserialize(self, inputs: SportecEventDataInputs) -> EventDataset: | |||
|
|||
events.append(transformer.transform_event(event)) | |||
|
|||
for i, event in enumerate(events[:-1]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use X-Source-Position
/Y-Source-Position
here.
kloppy/tests/test_sportec.py
Outdated
) | ||
|
||
first_pass = dataset.find("pass") | ||
assert first_pass.receiver_coordinates == first_pass.next().coordinates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use X-Source-Position
/Y-Source-Position
here.
@UnravelSports can you check this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request looks good as far as I can tell.
This PR is based on #216
OwnGoal
resultX/Y-Source-Position
asreceiver_coordinates
when possibleCloses #216