Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flow/core/kernel/vehicle/traci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ def set_color(self, veh_id, color):
"""
r, g, b = color
self.kernel_api.vehicle.setColor(
vehID=veh_id, color=(r, g, b, 255))
typeID=veh_id, color=(r, g, b, 255))

def add(self, veh_id, type_id, edge, pos, lane, speed):
"""See parent class."""
Expand Down
4 changes: 2 additions & 2 deletions flow/networks/traffic_light_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,10 @@ def new_con(side, from_id, to_id, lane, signal_group):
top_node_id = "{}_{}".format(i + 1, j)

conn = []
for lane in range(self.vertical_lanes):
for lane in range(self.horizontal_lanes):
conn += new_con("bot", node_id, right_node_id, lane, 1)
conn += new_con("top", right_node_id, node_id, lane, 1)
for lane in range(self.horizontal_lanes):
for lane in range(self.vectical_lanes):
conn += new_con("right", node_id, top_node_id, lane, 2)
conn += new_con("left", top_node_id, node_id, lane, 2)

Expand Down