You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FitFile.protocol_version, profile_version are just strings "major.minor" (i.e. "int dot int" format), not floats. Floats are inaccurate representations.
I propose to create a custom class FitVersion with fields major, minor and __str__ func with proper formatting. And maybe magic functions for comparison (__eq__, __gt__, ...). Can make a PR for that.
The text was updated successfully, but these errors were encountered:
fundthmcalculus
added a commit
to fundthmcalculus/python-fitparse
that referenced
this issue
Nov 1, 2021
The
FitFile.protocol_version, profile_version
are just strings "major.minor" (i.e. "int dot int" format), not floats. Floats are inaccurate representations.I propose to create a custom class
FitVersion
with fieldsmajor, minor
and__str__
func with proper formatting. And maybe magic functions for comparison (__eq__
,__gt__
, ...). Can make a PR for that.The text was updated successfully, but these errors were encountered: