Skip to content

Commit

Permalink
Prepare for release 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvossen committed Jun 25, 2021
1 parent 18eb05c commit 8c64582
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 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.6.1 (2021-06-25)

Pull request merged:

- Modify etps serializer so that it accepts files with no ball z ([#100](https://github.com/PySport/kloppy/pull/100))
- Add ball_z to skillcornertrackingserializer ([#98](https://github.com/PySport/kloppy/pull/98))

## 1.6.0 (2021-05-27)

Pull request merged:
Expand Down
2 changes: 1 addition & 1 deletion kloppy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
)
from .domain.services.state_builder import add_state

__version__ = "1.6.0"
__version__ = "1.6.1"
11 changes: 3 additions & 8 deletions kloppy/infra/serializers/tracking/epts/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,16 @@ def _frame_from_row(row: dict, metadata: EPTSMetadata) -> Frame:
y=row[f"player_{player.player_id}_y"],
)

if "ball_z" in row:
ball_coordinates = Point3D(
x=row["ball_x"], y=row["ball_y"], z=row["ball_z"]
)
else:
ball_coordinates = Point(x=row["ball_x"], y=row["ball_y"])

return Frame(
frame_id=row["frame_id"],
timestamp=timestamp,
ball_owning_team=None,
ball_state=None,
period=period,
players_coordinates=players_coordinates,
ball_coordinates=ball_coordinates,
ball_coordinates=Point3D(
x=row["ball_x"], y=row["ball_y"], z=row.get("ball_z")
),
)

def deserialize(
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: kloppy 1.6.0
site_name: kloppy 1.6.1
site_url: https://kloppy.pysport.org
repo_url: https://github.com/PySport/kloppy
repo_name: 'GitHub'
Expand Down

0 comments on commit 8c64582

Please sign in to comment.