Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"--default.speeddev", "0",
"--no-step-log"]
traci.start(cmd)
def step():
s = traci.simulation.getTime()
traci.simulationStep()
return s
p = "p0"
s = step()
s = step()
while traci.simulation.getMinExpectedNumber() > 0:
if s == 10:
traci.person.rerouteTraveltime("p0")
s = step()
traci.close()