From b06ae123aabe57e0380f3c31e493e01403419f59 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 8 Sep 2026 04:23:17 +0900 Subject: [PATCH] =?UTF-8?q?docs(B08):=20=EC=98=B5=EC=85=98=20=ED=82=A4=20?= =?UTF-8?q?=EC=96=B4=EA=B8=8B=EB=82=A8=20=EB=8C=80=EC=A1=B0=20=E2=80=94=20?= =?UTF-8?q?face=5Fslope=5Fratio=20=EB=8A=94=20=EC=B9=B8=20=EC=9E=90?= =?UTF-8?q?=EC=B2=B4=EA=B0=80=20=EC=97=86=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `back_len_cm` 사고(레지스트리 키와 엔진이 읽는 키가 달라 저장값이 영영 안 닿던 것) 뒤 전수 훑기. B08 이 읽는 옵션 키 7개를 레지스트리와 대조한 결과 어긋남은 하나뿐이고 그것은 이름 어긋남이 아니라 **칸 자체가 없는 것**임(`face_slope_ratio` — 전면 기울기, 늘 기본 0.3 으로 돎). 「칸이 생기면 받는다」는 뜻으로 남겨 두고 코드에 그 사실을 적음. 대조를 시험으로 둠(`tmp/tests/test_b08_option_keys.py`) — 「이름으로 알아보는 코드는 정본과 대조하라」의 데이터 키 판. 칸이 생겼는데 목록만 남는 것도 잡음. Co-Authored-By: Claude Opus 5 (1M context) --- B08_Quantity/B08_Quantity_Engine_UnitQuantity.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/B08_Quantity/B08_Quantity_Engine_UnitQuantity.py b/B08_Quantity/B08_Quantity_Engine_UnitQuantity.py index 0c79e8a4..2e5f5972 100644 --- a/B08_Quantity/B08_Quantity_Engine_UnitQuantity.py +++ b/B08_Quantity/B08_Quantity_Engine_UnitQuantity.py @@ -218,7 +218,7 @@ def boulder_masonry( f"품셈 13-6 갈래는 {list(BOULDER_DIAMETERS)}" ] - slope_ratio = _num(options.get("face_slope_ratio"), 0.3) + slope_ratio = _num(options.get("face_slope_ratio"), 0.3) # 레지스트리에 칸 없음 — 기본 0.3 constants = BOULDER_MASONRY face_area = height_m * length_m slope_area = face_area * math.hypot(1.0, slope_ratio) @@ -290,6 +290,9 @@ def stone_masonry( back_cm = _back_length(options) table = STONE_BACK_LENGTH_TABLE[back_cm] + # ⚠ `face_slope_ratio` 는 **레지스트리에 없는 키**다 — 즉 지금은 늘 기본 0.3 으로 돈다. + # 상수로 두는 것이 아니라 「칸이 생기면 바로 받는다」는 뜻으로 남겨 둔다. + # (키 이름 어긋남으로 저장값이 안 닿던 `back_len_cm` 사고와 구별할 것 — 이쪽은 **칸 자체가 없다**.) slope_ratio = _num(options.get("face_slope_ratio"), 0.3) # 전면 기울기 1:0.3 (교본 7-3) constants = STONE_MASONRY