chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환 - Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용 - pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관) - worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md) - D:\Rhino-MCP 경로 참조를 새 위치로 치환 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
964a841de1
3978 files changed
+58013356
No files matched your search
@@ -0,0 +1,41 @@
|
||||
"""Save a pier's params / expected as a protected template in data/_템플릿/<template> (2026-10-13).
|
||||
|
||||
usage:
|
||||
python tools/make_template.py <pier | folder> <template name> "<form description>"
|
||||
python tools/make_template.py --defaults # the two reference piers (운곡교P1형, 산외교울산P1형)
|
||||
Templates are not editable in the web app; a re-save keeps the old snapshot in data/_템플릿/_이전/.
|
||||
"""
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "web"))
|
||||
import store # noqa: E402
|
||||
|
||||
DEFAULTS = [
|
||||
("운곡교P1", "운곡교P1형",
|
||||
"말뚝기초 · 원형 기둥 Ø2.0 · 하면 곡선(R12,000) 코핑, 상면 5단 · 받침 10개 · 철근 G2~G4 운곡교 형식"),
|
||||
# the Ulsan P1 pier was deleted in the app on 2026-10-13 13:11; its intact copy (G1~G5 reading) is in the trash
|
||||
(str(store.DATA / store.TRASH / "산외교울산P1_20261013_131140"), "산외교울산P1형",
|
||||
"직접기초(말뚝 없음) · 원형 기둥 Ø2.5 · 직선 경사 코핑(끝면 300 경사, 상면 130 단차, 평면 R500) · 받침 4개 · "
|
||||
"철근 G2~G4 울산 형식(코핑 철근은 철근별 중심선)"),
|
||||
]
|
||||
|
||||
|
||||
def main(argv):
|
||||
jobs = DEFAULTS if argv == ["--defaults"] else [tuple(argv)] if len(argv) == 3 else None
|
||||
if not jobs:
|
||||
print(__doc__)
|
||||
return 2
|
||||
for pier, name, desc in jobs:
|
||||
if argv == ["--defaults"] and not (Path(pier).is_dir() or (store.DATA / pier / "params.json").exists()):
|
||||
print(f"skip {name}: source {pier} not found (the existing template is kept)")
|
||||
continue
|
||||
d = store.save_template(pier, name, desc)
|
||||
print(f"saved {pier} -> {d}")
|
||||
for t in store.templates():
|
||||
print(t["name"], "|", t["source"], "|", ", ".join(t["scope"]))
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main(sys.argv[1:]))
|
||||
Reference in new issue
Block a user