Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Great repo, Thanks!
Reference issue
Fixes #1490
What does this implement/fix?
Repeated target searches raise IndexError when the cached nearest waypoint
is the final course waypoint. The nearest-point search accesses ind + 1
before checking whether another waypoint exists.
Check the boundary before accessing the next waypoint and retain the final
index when the search reaches the course endpoint.
Add regression tests covering a single-waypoint course, repeated searches
at the final waypoint, progression to and beyond the endpoint, and repeated
searches at an interior waypoint. Document the endpoint behavior.
Additional information
Validation on Windows with Python 3.14.4:
python -m pytest tests -l -Werror --durations=0
160 passed, including the repository's code-style and mypy checks.
CheckList