Hi Manos,
 
thank you for notifying us about the bug. It has been documented
<https://github.com/eclipse-sumo/sumo/issues/13845> in Github and fixed 
immediately.
 
Best regards
Mirko
 
 
 
 
-----Original-Nachricht-----
Betreff: [sumo-user] Bug in mapDetectors.py
Datum: 2023-09-20T00:14:06+0200
Von: "manos kampitakis via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
 
 
 
Hi all,
 
It seems that there is a bug in mapDetectors.py in line 99: lanes.sort(). 
sort() function sorts tuples by default, using the first item in each 
tuple, but if two distances d for example (first item here) are the same 
then the second element is the next sorting criteria and so on. The second 
element is a Lane object thus python throws an error:
TypeError: '<' not supported between instances of 'Lane' and 'Lane'
I put instead: lanes = sorted(lanes, key = lambda x: x[0]) and works fine.
 
Best regards,
Manos
 

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to