Skip to content

Drop zero cadence samples from max_cadence, matching avg_cadence - #46

Merged
tabishm52 merged 1 commit into
mainfrom
max-cadence-skip-zeros
Sep 6, 2026
Merged

tabishm52 merged 1 commit into
mainfrom
max-cadence-skip-zeros

Conversation

@tabishm52

@tabishm52 tabishm52 commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • avg_cadence already excludes zero samples; max_cadence didn't, so an all-zero column reported avg_cadence None but max_cadence 0.0 for the same data.
  • Apply the same exclusion to max_cadence so the two agree.

Test plan

  • New test: an all-zero cadence column yields None for both, an all-zero power column keeps 0.0 for both.
  • Full gate green

avg_cadence already excludes zero samples for consistency with FIT's
own convention, but max_cadence didn't, so an all-zero cadence column
reported avg_cadence None and max_cadence 0.0 for the same samples.
Apply the same exclusion to max_cadence so the two agree.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tabishm52
tabishm52 merged commit f84735a into main Sep 6, 2026
4 checks passed
@tabishm52
tabishm52 deleted the max-cadence-skip-zeros branch September 6, 2026 05:47
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