-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not reclassify ferry connections when hierarchy=false #4487
Conversation
being used. Add a log statement to indicate no reclassification is occurring in the case where mjolnir config has hierarchy set to false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this method in case turn channels are being inferred, this allows a config to have reclassify_links = false and infer_turn_channels = true. In this case, turn channels are marked but no edges are reclassified.
infer_turn_channels is true.
Updated so that ReclassifyLinks is called if either reclassify_links and infer_turn_channels is true in the config. Added a reclassify_links bool to ReclassifyLinks (and pass this through to ReclassifyLinkGraph). If this is false, no edges are reclassified (but can be used for infer_turn_channels). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have some tests for this but it is very straight forward
I copied the TEST(RampsTCs, test_tc_infer) test and changed so that reclassify_links is false and infer_turn_channels is true. The test checks the ramps classification (makes sure they stay as motorway). Edge GK seems to still be marked as internal and a turn channel (as before). However, the narrative checks fail now. I am not sure why! |
not a ramp and not a turn channel, since we can have motorway ramps that are marked as turn channels (if reclassify_links is false and infer_turn_channels is true).
or a turn channel.
Do not reclassify ferry connections if hierarchies are not being used. Add a log statement to indicate no reclassification is occurring in the case where mjolnir config has hierarchy set to false.
Update graphbuilder to call link reclassification if infer_turn_channels is true. However, if reclassify_links is false then the actual reclassification (changing an edges classification) is bypassed but turn channel generation is performed (if config indicates infer_turn_channels=true).
fixes #4486
Log statements from a Maryland build where infer_turn_channels=true, reclassify_links=false, and hierarchy=false:
Issue
What issue is this PR targeting? If there is no issue that addresses the problem, please open a corresponding issue and link it here.
Tasklist
Requirements / Relations
Link any requirements here. Other pull requests this PR is based on?