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 > [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user _______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
