diff --git a/Scripts/preprocess_daily.py b/Scripts/preprocess_daily.py index 956da0487..ef5358dc4 100644 --- a/Scripts/preprocess_daily.py +++ b/Scripts/preprocess_daily.py @@ -403,7 +403,7 @@ class DailyPreprocessor(): turn_type = self.n2io2turn[node_id][(inc_edge_id, out_edge_id)] self.match5.at[i, 'turn_type'] = turn_type - self.p2PLindices = dict() # parent id to protected left index + self.p2UPLindices = dict() # parent id to unprotected left index # 2-1-6 @@ -750,7 +750,7 @@ class DailyPreprocessor(): u_turn_conn = inc_edge.getConnections(out_edge)[0] self.u2uindex[child_id] = u_turn_conn.getTLLinkIndex() - self.p2PLindices = dict() # parent id to protected left index + self.p2UPLindices = dict() # parent id to unprotected left index for parent_id in self.parent_ids: init_state = self.node2init[parent_id] # 우회전 이동류 인덱스 @@ -776,9 +776,9 @@ class DailyPreprocessor(): indices = [conn for conn in conns if conn.getJunctionIndex()>=0] indices = [conn.getTLLinkIndex() for conn in conns] indices_left.extend(indices) - # 비보호좌회전 인덱스 (protected left index) - PLindices = list((set(range(len(init_state))) - set(indices_right) - set(indices_assigned)).intersection(indices_left)) - self.p2PLindices[parent_id] = PLindices + # 비보호좌회전 인덱스 (unprotected left index) + UPLindices = list((set(range(len(init_state))) - set(indices_right) - set(indices_assigned)).intersection(indices_left)) + self.p2UPLindices[parent_id] = UPLindices print('2-2. 비보호우회전(g)을 배정했습니다.')