Skip to content

Commit

Permalink
Parse offside pass end coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
probberechts committed Nov 19, 2023
1 parent 3071118 commit 77af28e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kloppy/infra/serializers/event/opta/deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ def _parse_offside_pass(raw_qualifiers: Dict[int, str]) -> Dict:
qualifiers = _get_event_qualifiers(raw_qualifiers)
return dict(
result=PassResult.OFFSIDE,
receiver_coordinates=Point(
x=float(raw_qualifiers[140]), y=float(raw_qualifiers[141])
),
receiver_coordinates=_get_end_coordinates(raw_qualifiers),
receiver_player=None,
receive_timestamp=None,
qualifiers=qualifiers,
Expand Down

0 comments on commit 77af28e

Please sign in to comment.