Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] version 0.32.0 vs 1.1.0

Hello,

you might try the script, but be prepared to make changes and look
carefully at the results.
In my old scripts for example I had to make changes like

166,167c167,168
<     phd = traci.trafficlights.getPhaseDuration(self.tlname)
<     nextSwitch = traci.trafficlights.getNextSwitch(self.tlname)
---
>     phd = traci.trafficlight.getPhaseDuration(self.tlname)
>     nextSwitch = traci.trafficlight.getNextSwitch(self.tlname)
172,173c173,175
<     nextSwitch = traci.trafficlights.getNextSwitch(self.tlname)
<     return( ( nextSwitch - s) / 1000 )
---
>     nextSwitch = traci.trafficlight.getNextSwitch(self.tlname)
>     return( nextSwitch - ( s / 1000 ) )

Regards, Harald

Am 28.02.19 um 05:29 schrieb François Vaudrin:
> Hello,
>
> Can we run a traci python program from version 0.32.0 to version 1.1.0 directly?
>
> Thank you,
>
> François
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user




Back to the top