feat(master_data): 산림품셈 4장 · 5장 소요량 요소 파일 + 10장 · 9장 · 계수 파일 검사 결과 고침
- 소요량_산림품셈_04장 17표 · 05장 101표 추가 (본문 표 9 · 61개 전부, 글 속 계산용 수는 계수 표로) - 10장 드론운반 산출 항목 표를 10-13-2 로 옮기고 산출 기준 수를 10-13 계수 표로 분리 · 중기운반 값 없는 줄 정리 - 9장 관보호공 30% 를 9-13 계수 표로 옮김 · 물 운반 값 없는 줄 정리 - 계수 두 파일: 머리 칸 「표」 · 표마다 기준 · 주 칸 갖춤 · 열차 운행빈도 기준 8시간 기록 - check_master.py: 하위 절 표를 상위 절 결손 판정에 합산 · 값칸 단위 안의 수 인정 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1MKKZKpUHTPKb513FneU8
This commit is contained in:
@@ -228,7 +228,7 @@ def check_body(files: dict[str, dict]) -> list[str]:
|
||||
if not text:
|
||||
out.append(f"{where} · 본문 절 못 찾음 「{table.get('출처')}」")
|
||||
continue
|
||||
mine = _flat(table.get("줄")) | _flat(table.get("기준")) | _flat(table.get("주"))
|
||||
mine = _flat(table.get("줄")) | _flat(table.get("기준")) | _flat(table.get("주")) | _flat(table.get("값칸"))
|
||||
fake = mine - numbers_in(text)
|
||||
if fake:
|
||||
out.append(f"{where} · 허구 {len(fake)} {sorted(fake, key=Decimal)}")
|
||||
@@ -236,6 +236,10 @@ def check_body(files: dict[str, dict]) -> list[str]:
|
||||
slot[1] |= mine
|
||||
slot[2].append(where)
|
||||
for (md, ident), (text, mine, tables) in by_section.items():
|
||||
for (md2, ident2), (_, mine2, tables2) in by_section.items():
|
||||
if md2 == md and ident2.startswith(ident + "-"):
|
||||
mine = mine | mine2
|
||||
tables = tables + tables2
|
||||
table_text = "\n".join(line for line in text.split("\n") if line.lstrip().startswith("|"))
|
||||
lack = numbers_in(table_text) - mine
|
||||
if lack:
|
||||
|
||||
Reference in New Issue
Block a user