Conversation
- Add CDFTrackingDataSerializer with placeholder implementation - Add failing test using common-data-format-validator - Add Provider.CDF enum value - Add common-data-format-validator to test requirements
Use bugfix/packaging branch which fixes schema file inclusion
Feat/cdf serializer
Also fixed the test path to the validators
… any convertion with to_df()
get the position_group
Contributor
There was a problem hiding this comment.
This CommonDataFormatCoordinateSystem should instead follow this approach.
Please include it inside this file, instead of the separate file you created. That way everything is organised in 1 place.
class SecondSpectrumCoordinateSystem(ProviderCoordinateSystem):
"""
Second Spectrum coordinate system.
Uses a pitch with the origin at the center and the y-axis oriented from
bottom to top. The coordinates are in meters.
"""
@property
def provider(self) -> Provider:
return Provider.SECONDSPECTRUM
@property
def origin(self) -> Origin:
return Origin.CENTER
@property
def vertical_orientation(self) -> VerticalOrientation:
return VerticalOrientation.BOTTOM_TO_TOP
@property
def pitch_dimensions(self) -> PitchDimensions:
if self._pitch_length is not None and self._pitch_width is not None:
return MetricPitchDimensions(
x_dim=Dimension(
-1 * self._pitch_length / 2, self._pitch_length / 2
),
y_dim=Dimension(
-1 * self._pitch_width / 2, self._pitch_width / 2
),
pitch_length=self._pitch_length,
pitch_width=self._pitch_width,
standardized=False,
)
else:
return MetricPitchDimensions(
x_dim=Dimension(None, None),
y_dim=Dimension(None, None),
pitch_length=None,
pitch_width=None,
standardized=False,
)There was a problem hiding this comment.
done with this the class is well implemented now.
…ion retrieving and get block on handling the class into kloppy.domain...
Contributor
|
@stephTchembeu can you:
@koenvo what would be the best way to structure the functionality. Like, what did you have in mind for something like below? from kloppy import common_data_format
common_data_format.store() # opposite of .load? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.