Skip to content

Stop deriving Activity fields for a file holding more than one activity - #41

Merged
tabishm52 merged 1 commit into
mainfrom
guard-multi-activity-derivation
Sep 6, 2026
Merged

tabishm52 merged 1 commit into
mainfrom
guard-multi-activity-derivation

Conversation

@tabishm52

@tabishm52 tabishm52 commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Guard fill_activity when a file has more than one session/Activity/track, since merged records/laps can't be attributed to just the first activity
  • Extend the existing multi-activity/multi-track/multi-session tests to pin the new behavior
  • Fix a latent test_readme.py section-boundary bug found along the way

Test plan

  • uv run pytest
  • uv run ruff check / uv run ruff format --check
  • uv run pyright
  • uv run pre-commit run --all-files

Merged records/laps from a chained FIT file, multi-Activity TCX, or
multi-track GPX can't be attributed to just the first activity, so
those fields are left None instead of a mixed aggregate.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tabishm52
tabishm52 merged commit c7cd382 into main Sep 6, 2026
4 checks passed
@tabishm52
tabishm52 deleted the guard-multi-activity-derivation branch September 6, 2026 00:58
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