Commit 20500a86 authored by 张晓彤's avatar 张晓彤

交叉口判定优化

parent f55a7eb9
......@@ -508,7 +508,7 @@ class Topo():
"""
self.cross_bf_lanes = []
for node_id, Type in self.load_G.nodes.data('name'):
if Type == 'None':
if Type is None or Type == 'None':
lanes = session_postgre.query(Lane).filter_by(EndNodeId=node_id).first()
if lanes is not None:
self.cross_bf_lanes.append(str(lanes.Id))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment