Skip to content

Commit

Permalink
fix: transformation of pitch dimensions should update coordinate system
Browse files Browse the repository at this point in the history
Fixes PySport#407: Transforming the pitch dimensions of a dataset with a coordinate
system will now change the dataset's coordinate system to
a `CustomCoordinateSystem` with the specified pitch dimensions.

As a side effect, makes it easier to create a custom coordinate system:

```
from kloppy.domain import CustomCoordinateSystem

my_coordinate_system = CustomCoordinateSystem(
	origin=...,
	vertical_orientation=...,
	pitch_dimensions=...,
)
```
  • Loading branch information
probberechts committed Feb 1, 2025
1 parent 9692ec3 commit 4ea7ecf
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 106 deletions.
Loading

0 comments on commit 4ea7ecf

Please sign in to comment.