DB_JOB/작업파일/공공기관2/10.한국지역난방공사/_ovl.py
hehihoho3 b0acd1e705 백업: 셀병합 정상화(D~J)+KDHC 옵션2/행높이17, 오늘(06-21) 제출 17곳 검수·압축
- 공공기관2/3 작업본 + 오늘 제출 17곳 D~J 카테고리 셀병합 정상화
- 한국지역난방공사 옵션2(고아셀 F98 수정)+전행 높이17
- 제출_프리랜서2_2026-06-21.zip 생성(17개 xlsx, 2,468행)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 13:21:26 +09:00

14 lines
748 B
Python

# -*- coding: utf-8 -*-
import openpyxl
wb=openpyxl.load_workbook("한국지역난방공사.xlsx"); ws=wb.active
cands=[(5,3,4),(5,26,27),(5,54,55),(5,142,143),(5,159,160),(5,202,203),(5,224,225),
(6,3,5),(6,28,29),(6,46,47),(6,54,56),(6,62,63),(6,75,76),(6,107,108),(6,149,150),(6,163,164),
(7,29,30),(7,46,47),(7,62,64),(7,108,109),(7,119,120),(7,163,165),(7,179,180)]
existing=[(mr.min_col,mr.min_row,mr.max_row,mr.max_col) for mr in ws.merged_cells.ranges if mr.min_col==mr.max_col]
prob=0
for (c,r1,r2) in cands:
for (ec,er1,er2,emc) in existing:
if ec==c and not(er2<r1 or er1>r2): # overlap in same col
print("OVERLAP cand col%d %d:%d with existing %d:%d"%(c,r1,r2,er1,er2)); prob+=1
print("overlap problems:",prob)