Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kloppy/infra/serializers/tracking/skillcorner.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ def _raw_coordinates_to_point(
x = raw_coordinates["x"]
y = raw_coordinates["y"]
z = raw_coordinates.get("z")
if x and y and z:
if x is not None and y is not None and z is not None:
return Point3D(x=float(x), y=float(y), z=float(z))
elif x and y:
elif x is not None and y is not None:
return Point(x=float(x), y=float(y))

@classmethod
Expand Down
Loading