Skip to content

Commit

Permalink
Fix for TRACAB
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvossen committed Sep 22, 2020
1 parent 4122c1a commit 2749793
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Find out all changes between different kloppy versions


## 1.2.1 (2020-09-22)

Bugfix:

- Don't crash when TRACAB contains unknown team id

## 1.2.0 (2020-09-08)
Github issues closed:

Expand Down
3 changes: 2 additions & 1 deletion kloppy/infra/serializers/tracking/tracab.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def _frame_from_line(cls, teams, period, line, frame_rate):
elif team_id == 0:
team = teams[1]
else:
raise Exception(f"Unknown team {team_id}")
# it's probably -1, but make sure it doesn't crash
continue

player = team.get_player_by_jersey_number(jersey_no)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="kloppy",
version="1.2.0",
version="1.2.1",
author="Koen Vossen",
author_email="[email protected]",
url="https://kloppy.pysport.org/",
Expand Down

0 comments on commit 2749793

Please sign in to comment.