Hello everybody,

I want to use visualization tools provide by SUMO to make graphics. I saved the 
results of a simulation in .csv file and kept only 4 fields for simplicity. I 
also converted the fields in natural numbers (except the first field edge_id 
field). This is the file that I use:  RES_edge_travel_waiting.csv 
I use Python 2.7 with IDLE console, but I have an error message. Someone have 
an idea correcting this problem?

edge_id;edge_sampledSeconds;edge_speed;edge_traveltime;edge_waitingTime
-M11;33546;13;62;0
-M12;3802;8;7;0
-M12.120;2426;10;4;30
-M12.60;3159;10;6;0
…


>>> plot_csv_bars.main("RES_edge_travel_waiting.csv")

Traceback (most recent call last):
  File "<pyshell#41>", line 1, in <module>
    plot_csv_bars.main("RES_edge_travel_waiting.csv")
  File "plot_csv_bars.py", line 67, in main
    options, remaining_args = optParser.parse_args(args=args)
  File "/usr/lib/python2.7/optparse.py", line 1400, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1447, in _process_args
    del rargs[0]

TypeError: 'str' object doesn't support item deletion


Thank you

François Vaudrin
Université Laval, CANADA
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to