Skip to content

Commit

Permalink
Typo fixes Wyscouts deserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
probberechts committed Dec 22, 2023
1 parent 67403ee commit a69b89b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kloppy/infra/serializers/event/wyscout/deserializer_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ def deserialize(self, inputs: WyscoutInputs) -> EventDataset:
)
new_events.append(generic_event)

# Wyscout v2 does not have a seperate event type for
# interceptions. Interceptions are recored by adding a tag to
# Wyscout v2 does not have a separate event type for
# interceptions. Interceptions are recorded by adding a tag to
# the next pass, touch or duel. Therefore, we convert events
# with this tag to an interception.
if _has_tag(raw_event, wyscout_tags.INTERCEPTION):
Expand Down
1 change: 0 additions & 1 deletion kloppy/tests/test_wyscout.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def dataset(self, event_v2_data) -> EventDataset:
def test_miscontrol_event(self, dataset: EventDataset):
miscontrol_event = dataset.get_event_by_id("190078351")
assert miscontrol_event.event_type == EventType.MISCONTROL
assert dataset.events[11].event_type == EventType.MISCONTROL

def test_interception_event(self, dataset: EventDataset):
# A touch or duel with "interception" tag should be converted to an interception event
Expand Down

0 comments on commit a69b89b

Please sign in to comment.