Skip to content
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

mapDetectors.py crashes for lanes at the same distance #13845

Closed
m-kro opened this issue Sep 20, 2023 · 0 comments
Closed

mapDetectors.py crashes for lanes at the same distance #13845

m-kro opened this issue Sep 20, 2023 · 0 comments
Assignees
Milestone

Comments

@m-kro
Copy link
Contributor

m-kro commented Sep 20, 2023

Reported on the mailing list. Python list sorting of tuples did not consider the special case of tuples containing the same distance values. As the second part of the tuple is a sumolib Lane for which no sort order is defined, the script issues an error.

Solution: Specify the first tuple item as the only one to use for sorting.

@m-kro m-kro added this to the 1.19.0 milestone Sep 20, 2023
@m-kro m-kro self-assigned this Sep 20, 2023
m-kro added a commit that referenced this issue Sep 20, 2023
Signed-off-by: m-kro <m.barthauer@t-online.de>
@m-kro m-kro closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant