Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] somulib parse_fast_nested

Please update to the latest repository version which now supports all use cases.

Am Mo., 17. Mai 2021 um 22:04 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
Dear all,

since version 1.9.1 I noticed a small change in the sumolib/xml.py in parse_fast_nested function i.e. https://github.com/eclipse/sumo/commit/72e6bf842a49dba9c1399ef608eecf187addf7ac#diff-05f6455dc67b972faeae4013588d6f120b07c16f68621556b98aff3d144579d1 that causes duarouter/marouter output parsing not working as in the previous version of the function. 
Currently, I cannot retreive the attributes of route element as I could previously using my python script:
for row in sumolib.output.parse_fast_nested(filePath,'vehicle',['id','depart'],'route',['cost','probability','edges']):
        ((vehidi,departTimei),(costi,probi,edgesi)) = row 
I undid the changes and my script works again. Just wondering how should I adapt my code to work with the new function?

Thanks,
Sasan
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top