Hello, thank you for reporting! This has now been fixed (development version [26189]) regards, Jakob
2017-09-22 13:13 GMT+02:00 Do Duc Le <[email protected]>: > Hi, > > I tried to set the state of one linkIndex with > traci.trafficlights.setLinkState(tlsID,6,"G"), but I get error message > > "File "/home/doducle/sumo-0.31.0/tools/traci/_trafficlights.py", line > 202, in setLinkState > raise TraCIException("Invalid tlsLinkIndex %s for tls '%s' with > maximum index %s." % ( > NameError: global name 'TraCIException' is not defined" > > There are 12 Linkindices in my trafficlight tlsID, so that should not be a > problem. I had a quick look at the code of the function setLinkState in the > file /sumo-0.32.0/tools/traci/_trafficlights.py. Could there be a mistake > in > > "fullState = list(self.getRedYellowGreenState(tlsID)) > if tlsLinkIndex >= len(state): > > ..." ? > > I think you have to compare the LinkIndex with the length of fullstate and > not state, correct me if I'm wrong. > > > Best regards, > > Duc > > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.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://dev.eclipse.org/mailman/listinfo/sumo-user
