Closed mjcortejo closed 1 year ago
Found issue, Debug line 222. And start from there.
There's an error when using get intersection light state, where intersection 11 heading to 17 does not have an object.
Instead of looping neighbors we need to loop the ones that are in-degrees
Must use G.predecessors to loop all the neighbors instead of everything
https://networkx.org/documentation/stable/reference/classes/generated/networkx.DiGraph.predecessors.html
lol fixed by using predecessors
Found issue, Debug line 222. And start from there.
There's an error when using get intersection light state, where intersection 11 heading to 17 does not have an object.
Instead of looping neighbors we need to loop the ones that are in-degrees