Repository navigation
Release/0.2.16 - #165
Merged
Merged
Release/0.2.16#165
Conversation
- Regenerate uv.lock with updated dependencies and lockfile format
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.
close #150
This pull request refactors the road initialization and state persistence logic in both
sample_road_detector.pyanddefault_road_detector.pyto improve code reuse and ensure consistent handling of target areas and priority roads across precompute, resume, and prepare phases.Road initialization and state persistence:
_initialize_roadsmethod to encapsulate the logic for populating_target_areasand_priority_roads, reducing code duplication and improving maintainability. [1] [2]precomputeandpreparemethods to use_initialize_roads, ensuring consistent initialization of road-related sets. [1] [2]precomputemethod to serialize the computed road data (_target_areasand_priority_roads) to JSON, and theresumemethod to restore them from JSON, ensuring correct state restoration between runs. [1] [2]_target_areasand_priority_roadsfrom theresumemethod to the new_initialize_roadsmethod, and adjusted the logic to avoid redundant computation if already initialized. [1] [2]These changes make the road detector modules more robust and maintainable by centralizing initialization logic and persisting state efficiently.