def run_global_reconstruction(input_file): print("로그: 전체 시트 통합 데이터를 분석 중입니다...") df = pd.read_excel(input_file) # 1. 전역 주소록 생성: (시트명, 셀위치) -> 값 # 예: { ('A1', 'G105'): 30.901, ('철근집계', 'C47'): 159.263 } global_map = {} for _, row in df.iterrows(): global_map[(str(row['시트명']), str(row['셀위치']))] = row['현재값'] def trace_logic(formula, current_sheet): if not isinstance(formula, str) or not formula.startswith("'="): return formula