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 issue in pace timeline with no moving time #23

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

JohnScolaro
Copy link
Owner

Sometimes the "moving time" of an activity is broken in Strava. Typically for very old Garmin uploads, this field is either zero or way too large. If it is zero, when we resample to create the moving average lines, we can divide by zero, and get extra NaN's and then filter them out. Very niche issue, but this takes care of it + adds a test to make sure we don't regress.

Sometimes the "moving time" of an activity is broken in Strava.
Typically for very old Garmin uploads, this field is either zero or way
too large. If it is zero, when we resample to create the moving average
lines, we can divide by zero, and get extra NaN's and then filter them
out. Very niche issue, but this takes care of it + adds a test to make
sure we don't regress.
@JohnScolaro JohnScolaro self-assigned this Sep 29, 2023
@JohnScolaro JohnScolaro merged commit a859f56 into main Sep 29, 2023
@JohnScolaro JohnScolaro deleted the bugfix/pace-timeline-moving-zero-bug branch September 29, 2023 05:15
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.

1 participant