Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Set traffic light error

the error indicates that the phase string "GyGy" does not have the correct number of entries. Right-click the traffic ligh (red/green bars) for center0 in sumo-gui and check the number of controlled links by selecting 'show phases' or simply call
trafficlights.getRedYellowGreenState('center0') to see what the proper size should be.

2017-11-02 2:46 GMT+01:00 Eugene Vinitsky via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
Hello, I am trying to control a grid of traffic lights in which they are
named "center0", "center1", etc.
I run the command

self.traci_connection.trafficlights.setRedYellowGreenState('center0', 'GyGy')

I then get the error: Mismatching phase size in tls 'center0', program

If someone can see what I'm doing wrong, that'd be much appreciated.


Eugene Vinitsky
Check out the vibrant tech community on one of the world's most
engaging tech sites,!
sumo-user mailing list
sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top