Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inputs of kloppy.helpers.transform #186

Merged
merged 1 commit into from May 15, 2023

Conversation

probberechts
Copy link
Contributor

  • The kloppy.helpers.transform method now allows changing the orientation without having to specify to_pitch_dimensions or to_coordinate_system.
  • The kloppy.helpers.transform method now allows that to_pitch_dimensions is specified as a PitchDimensions object
  • The kloppy.helpers.transform method now allows that to_coordinate_sytem is specified as a data provider string
  • Removes unused and duplicate code
  • Additional typing and typing fixes
  • Improved exception handling

Closes #177

- The kloppy.helpers.transform method now allows changing the orientation without having to specify the pitch dimensions or coordinate system.
- The kloppy.helpers.transform method now allows that to_pitch_dimensions is specified as a PitchDimensions object
- The kloppy.helpers.transform method now allows that to_coordinate_sytem is specified as a Provider string
- Removes unused and duplicate code
- Additional typing and typing fixes
- Added tests for the changes mentioned above
- Improved exception handling

Closes PySport#177
@koenvo
Copy link
Contributor

koenvo commented May 11, 2023

Thanks a lot Pieter!

I’ll review this PR the next couple of days.

@koenvo koenvo merged commit 66561e5 into PySport:master May 15, 2023
20 checks passed
@probberechts probberechts deleted the fix-transform-params branch January 1, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kloppy.helpers.transform does not allow the expected inputs
2 participants