Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Question about python library sumolib and .output.parse method

Hi all,

I have two questions regards sumolib.output.parse method.

1- How can I simultaneously parse the departure time and route edges from .rou.xml file?

My code  is 

import sumolib

RouFilePath = "C:\Users\Ahmed\Documents\SUMO\ND_network\ND_002.rou.xml"

for v in sumolib.output.parse(RouFilePath, "vehicle"):    
     print (v.route.edges.split())
     print v.depart

but it returns error >> AttributeError: 'list' object has no attribute 'edges'


2- What is the difference between .output.parse and output.parse_fast?

Thank you
Best Regards,
Ahmed 



Back to the top