Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Question about xml2csv tool and plot_csv_timeline visualization


I am trying to visualise certain behaviour in my bare bones SUMO simulation. Initially, I want to reuse as many visualisation tools as mentioned in as required to gain an insight of the behaviour of vehicles. I did not find an example for plotting certain output files like lanechange outputs.

As mentioned on , I am using the python tool to convert lanechange output to CSV and then attempting to use but I get the following error:

_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

After googling the error and on inspecting the source code (, the line
with open(file, 'rb') as f:
seems to be opening it in binary format (bytes) and should instead be opened with 'r' flag instead of 'rb'. Is this a necessary change or is there something I am missing to make this work?
Thank you.


Back to the top