Browse Source

minor modifications on assign_traffic.py

master
김선중 1 year ago
parent
commit
12662b2125
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      Scripts/preprocess_daily.py

+ 6
- 6
Scripts/preprocess_daily.py View File

@ -50,12 +50,12 @@ class DailyPreprocessor():
if self.config_name == 'draft':
# 모든 컬럼에 대하여 데이터타입 지정
loading_dtype = {
'inter_no':int, 'start_hour':int, 'start_minute':int, 'cycle':int,
'offset':int, 'node_id':str, 'inter_type':str, 'parent_id':str,
'child_id':str, 'direction':str, 'condition':str, 'inc_edge_id':str,
'out_edge_id':str,'end_unix':int, 'inter_name':str, 'inter_lat':float,
'inter_lon':float,'group_no':int, 'main_phase_no':int, 'phase_no':int,
'ring_type':str, 'angle_code':str, 'turn_type':str}
'inter_no':int, 'start_hour':int, 'start_minute':int, 'cycle':int,
'offset':int, 'node_id':str, 'inter_type':str, 'parent_id':str,
'child_id':str, 'direction':str, 'condition':str, 'inc_edge_id':str,
'out_edge_id':str, 'end_unix':int, 'inter_name':str, 'inter_lat':float,
'inter_lon':float, 'group_no':int, 'main_phase_no':int, 'phase_no':int,
'ring_type':str, 'angle_code':str, 'turn_type':str}
for alph in ['A', 'B']:
for j in range(1,9):
# loading_dtype[f'angle_{alph}{j}'] = 'str'

Loading…
Cancel
Save