PySport/kloppy

Periods creation for StatsBomb deserializer fails in rare occasions

DriesDeprest opened this issue · 0 comments

In rare occasions, I've seen that StatsBomb matches have more than one period start / end event for a given team in their events data, which results in the StatsBomb deserializer returning a DeserializationError: "Failed to determine start and end time of periods.".

When this is the case the first_start_and_end_half_events contains 5 elements (see screenshot below), which results into the DeserializationError.

image