Skip to content

Commit

Permalink
Bump version to 2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvossen committed Nov 10, 2021
1 parent d6c03f2 commit 4326ba8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Find out all changes between different kloppy versions

## 2.2.2 (2021-11-10)

- Don't break when wyscout doesn't include end position of shot/pass

## 2.2.1 (2021-10-31)

- Fix import load_second_spectrum_tracking_data
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__ = "2.2.1"
__version__ = "2.2.2"
8 changes: 6 additions & 2 deletions kloppy/infra/serializers/event/wyscout/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def _parse_shot(raw_event: Dict, next_event: Dict) -> Dict:
"result_coordinates": Point(
x=float(raw_event["positions"][1]["x"]),
y=float(raw_event["positions"][1]["y"]),
) if len(raw_event['positions']) > 1 else None,
)
if len(raw_event["positions"]) > 1
else None,
"qualifiers": qualifiers,
}

Expand Down Expand Up @@ -177,7 +179,9 @@ def _parse_pass(raw_event: Dict, next_event: Dict) -> Dict:
"receiver_coordinates": Point(
x=float(raw_event["positions"][1]["x"]),
y=float(raw_event["positions"][1]["y"]),
) if len(raw_event['positions']) > 1 else None
)
if len(raw_event["positions"]) > 1
else None,
}


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 2.2.1
site_name: kloppy 2.2.2
site_url: https://kloppy.pysport.org
repo_url: https://github.com/PySport/kloppy
repo_name: 'GitHub'
Expand Down

0 comments on commit 4326ba8

Please sign in to comment.