Browse Source

deleted seemingly unnecessary comments

master
김선중 1 year ago
parent
commit
f2550343b6
1 changed files with 0 additions and 18 deletions
  1. +0
    -18
      Scripts/preprocess_daily.py

+ 0
- 18
Scripts/preprocess_daily.py View File

@ -307,24 +307,6 @@ class DailyPreprocessor():
: inter_no, phase_no, ring_type, move_no, inc_dire, out_dire, inc_angle, out_angle
'''
# # 계층화
# angles = []
# for i, row in self.angle.iterrows():
# angle_codes = row[[f'angle_{alph}{j}' for alph in ['A', 'B'] for j in range(1,9)]]
# new = pd.DataFrame({'inter_no':[row.inter_no] * 16, 'phase_no':list(range(1, 9))*2,
# 'ring_type':['A'] * 8 + ['B'] * 8, 'angle_code':angle_codes.to_list()})
# angles.append(new)
# angles = pd.concat(angles)
# angles = angles.dropna().reset_index(drop=True)
# # 병합
# six_chars = angles.angle_code.apply(lambda x:len(x)==6)
# angles.loc[six_chars,'inc_angle'] = angles.angle_code.apply(lambda x:x[:3])
# angles.loc[six_chars,'out_angle'] = angles.angle_code.apply(lambda x:x[3:])
# angles = angles.drop('angle_code', axis=1)
# self.match4 = pd.merge(self.match3, angles, how='left', left_on=['inter_no', 'phase_no', 'ring_type'],
# right_on=['inter_no', 'phase_no', 'ring_type']).drop_duplicates()
# helper dictionaries
im2inc_angle = dict() # a dictionary that maps (inter_no, move_no) to inc_angle
im2out_angle = dict() # a dictionary that maps (inter_no, move_no) to out_angle

Loading…
Cancel
Save