Hello,
I am having problems using the visualization tool plot_net_dump.py, and I was
wondering if you could help me out.
I am using this command:
>python plot_net_dump.py -v -n eichstaett.net.xml -i
>emissionStats.xml,emissionStats.xml
and I just get the following:
Reading network from 'eichstaett.net.xml'
Reading colors from 'emissionStats.xml'
Reading widths from 'emissionStats.xml'
>
No plot! :S
I already tried to change the measures using speed, co2, nox, but I get the
same result.
I tried to put some flags inside the .py file to see where it stops and I saw
that it never enters the for "for t in times" since times is empty:
-----
times = []
hc = None
if options.dumps.split(",")[0]!="":
if options.verbose: print "Reading colors from '%s'" %
options.dumps.split(",")[0]
hc = WeightsReader(options.measures.split(",")[0])
sumolib.output.parse_sax(options.dumps.split(",")[0], hc)
times = hc._edge2value
print times
hw = None
if options.dumps.split(",")[1]!="":
if options.verbose: print "Reading widths from '%s'" %
options.dumps.split(",")[1]
hw = WeightsReader(options.measures.split(",")[1]
sumolib.output.parse_sax(options.dumps.split(",")[1], hw)
times = hw._edge2value
print times
for t in times:
"It never enter the for since times is times is{}"...
------
I printed times before getting into the for and this is what I got:
Reading network from 'eichstaett.net.xml'
Reading colors from 'emissionStats.xml'
Reading widths from 'emissionStats.xml'
{}
>
I don't think it is a issue with matplotlib because I can use other tools like
plot_net_speeds.py, plot_net_trafficLights.py or plot_summary.py
emissionStats.xml is a bit large but if you need it I can share it... I did
check that all the brackets were closed though.
This is an extract from emissionStats.xml:
<emission-export>
<timestep time="28800.00">
<vehicle id="63" eclass="-1" co2="1503.79" co="0.00" hc="0.29"
nox="2.34" pmx="0.08" fuel="0.60" noise="60.57" route="!63"
type="DEFAULT_VEHTYPE" waiting="0.00" lane="2845_0" pos="5.10" speed="29.99"
angle="-16.06" x="2037.74" y="1586.98"/>
</timestep>
<timestep time="28801.00">
<vehicle id="63" eclass="-1" co2="0.00" co="0.00" hc="0.00" nox="0.00"
pmx="0.00" fuel="0.00" noise="56.23" route="!63" type="DEFAULT_VEHTYPE"
waiting="0.00" lane="2845_0" pos="12.27" speed="25.82" angle="-16.06"
x="2035.75" y="1580.09"/>
</timestep>
<timestep time="28802.00">
<vehicle id="63" eclass="-1" co2="1621.52" co="1.96" hc="0.38"
nox="2.62" pmx="0.09" fuel="0.65" noise="60.75" route="!63"
type="DEFAULT_VEHTYPE" waiting="0.00" lane="2845_0" pos="19.68" speed="26.65"
angle="-16.06" x="2033.71" y="1572.97"/>
</timestep>
</emission-export>
Thank you!
Julio
Jul
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user