24 lines
1009 B
Python
24 lines
1009 B
Python
import json
|
|
import re
|
|
from pathlib import Path
|
|
|
|
md_path = Path(r"resources/knowledge/original/행정규칙/임도 품셈 적용기준 (현 산림사업 표준품셈)/첨부/(산림청고시 제2025-82호) 산림사업 표준품셈.md")
|
|
master_path = Path(r"resources/data_work_item_master/work_item_master_2026-01-01.json")
|
|
pum_forest_path = Path(r"resources/data_cost_input_value/pum_forest_2026.json")
|
|
coef_path = Path(r"resources/data_cost_input_value/coef_2026.json")
|
|
|
|
with open(master_path, "r", encoding="utf-8") as f:
|
|
master = json.load(f)
|
|
|
|
with open(pum_forest_path, "r", encoding="utf-8") as f:
|
|
pum_forest = json.load(f)
|
|
|
|
with open(coef_path, "r", encoding="utf-8") as f:
|
|
coef = json.load(f)
|
|
|
|
with open(md_path, "r", encoding="utf-8") as f:
|
|
lines = f.readlines()
|
|
|
|
print(f"Loaded master with {len(master['work_items'])} work items, {master['stats']['tables_attached']} attached tables, {len(master['orphan_tables'])} orphan tables.")
|
|
print(f"Loaded markdown with {len(lines)} lines.")
|