Hello Mr Behrish

Many thanks for the help

It is exactly what I want as output

really I appreciate

Thanks once again

Best regards

2016-03-25 23:21 GMT+01:00 Michael Behrisch <[email protected]>
:

> Hi,
> more or less like this:
>
> import os,sys
> sys.path.append(os.path.join(os.environ["SUMO_HOME"], "tools"))
> import sumolib
> for v in sumolib.output.parse(sys.argv[1], "vehicle"):
>     print(zip(v.route[0].edges.split(), v.route[0].exitTimes.split()))
>
> Please strongly consider reading http://sumo.dlr.de/wiki/Tools/Sumolib.
>
> Best regards,
> Michael
>
>
> Am 25.03.2016 um 22:14 schrieb mima Line:
> > hello Mr Behrish
> >
> > thank you for the reply
> >
> > now it works very good with Bologna scenario  in
> >
> https://sourceforge.net/projects/sumo/files/traffic_data/scenarios/Bologna_small/
> >
> > I get the correct output
> >
> > <vehicle id="Pepoli_8_16" type="passenger2b" depart="27.00"
> > arrival="82.00"><route edges="210 43[0] 43[1] 134 134b" exitTimes="58.00
> > 61.00 68.00 70.00 82.00"/></vehicle>
> >
> > Could you advice me to how sparse this XML file so I get  [Vi, (edgeID1,
> > Ti1), (edgeID2, Ti2),........(edgeIDn, Tin)] python script or some thing
> > else
> >
> > thank you ver much for the help
> >
> > Best regards
> >
> >
> > 2016-03-25 10:42 GMT+01:00 Michael Behrisch <
> [email protected]>
> > :
> >
> >> Hi,
> >> this looks like an outdated or manually modified network. Does the
> >> scenario fit your sumo version?
> >>
> >> Best regards,
> >> Michael
> >>
> >> Am 25.03.2016 um 00:04 schrieb mima Line:
> >>> Hello Mr Behrisch
> >>>
> >>> thank you for the reply
> >>>
> >>> it seems that it works but I still get a small error
> >>>
> >>> I getLoading configuration... done.
> >>> Error: Empty edges in roundabout.
> >>> Quitting (on error).
> >>>
> >>> may be this is due to my file howver it is the scenario erlangen in
> veins
> >>>
> >>> I will try to test another scenario, and I will see
> >>>
> >>> thank you one again
> >>>
> >>> Best regards
> >>>
> >>>
> >>> 2016-03-24 16:31 GMT+01:00 Michael Behrisch <
> >> [email protected]>
> >>> :
> >>>
> >>>> Hi,
> >>>> please keep the list posted.
> >>>>
> >>>> Am 24.03.2016 um 10:59 schrieb mima Line:
> >>>>>
> >>>>> when I write
> >>>>>
> >>>>> sumo -c erlangen.sumo.cfg  --vehroutes.exit-times out-erlgen.xml
> >>>>>
> >>>>> I get
> >>>>>
> >>>>> Error: While processing option 'vehroutes.exit-times':
> >>>>>  'out-erlgen.xml' is not a valid bool.
> >>>>> Error: Could not parse commandline options.
> >>>>> Quitting (on error).
> >>>>
> >>>> The correct line is
> >>>>   sumo -c erlangen.sumo.cfg --vehroutes.exit-times --vehroutes
> >>>> out-erlgen.xml
> >>>>
> >>>> Best regards,
> >>>> Michael
> >>>>
> >>>>
> >>>
> >>
> >>
> >
>
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to