Skip to content

feat: a stop ticked for a race reaches 500 m from that race's line - #197

Merged
MikeWills merged 1 commit into
mainfrom
feat/stated-stop-wider-offset
Oct 1, 2026
Merged

MikeWills merged 1 commit into
mainfrom
feat/stated-stop-wider-offset

Conversation

@MikeWills

Copy link
Copy Markdown
Owner

Why

The Mankato organizer spaced the Full, Half and 10K lines apart on purpose so each race shows on the map where they share road. That put water stop A 284 m from the Half's line - beyond the 250 m limit - so A had no Half mile and the Half's first leg had no pace or ETA. There is no corrected file to wait for: the offset is the design.

What

  • progress.STATED_MAX_OFFSET_M = 500.0: a stop the club ticked for a race (poi_course) reaches that far on that race.
  • CourseIndex.progression(..., stated=) applies it per stop; place_positions passes its (all-ticked) stops, leaders._leader_for passes the race's ticked stops.
  • Snapped-only and unticked stops keep DEFAULT_MAX_OFFSET_M (250 m), which is what stops a stop on a neighbouring road getting a confident wrong mile.

Tests

Four new tests in tests/test_place_miles.py (ticked stop at 284 m gets its race's mile; unticked does not; ticked at 900 m does not; leader progression measures a ticked far stop). Full suite: 895 passed, 1 skipped before a test-only fix (the test placed a stop backwards along the north-to-south Half); progress tests re-run green after.

Not yet checked against the real Half.kmz; the mile is as good as the offset line.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QkbtsMnQEe8HZ7xyxXHYHB

The Mankato organizer spaced the race lines apart on purpose, so stop A is
284 m off the Half. Ticked stops now reach STATED_MAX_OFFSET_M; unticked
stops keep 250 m.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QkbtsMnQEe8HZ7xyxXHYHB
@MikeWills
MikeWills merged commit 1e287ba into main Oct 1, 2026
2 checks passed
@MikeWills
MikeWills deleted the feat/stated-stop-wider-offset branch October 1, 2026 23:55
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