Merge branch 'sub_laptop_6' of C:/Aislo_wt/sub_laptop_6 into main_laptop_1

This commit is contained in:
2026-11-18 02:02:56 +09:00
10 changed files with 529 additions and 156 deletions
@@ -50,7 +50,15 @@ class _Seen:
setattr(self._m, name, value)
def __getattr__(self, name):
raw = inspect.getattr_static(self._m, name)
target = self._m
while True: # 감싼 색인(`_Over` · 사본 색인)은 속 색인 메서드를 이 감쌈에 묶음
try:
raw = inspect.getattr_static(target, name)
break
except AttributeError:
target = getattr(target, "_whole", None)
if target is None:
return getattr(self._m, name)
if isinstance(raw, types.FunctionType):
return raw.__get__(self)
return getattr(self._m, name)
+7 -7
View File
@@ -3,18 +3,18 @@
"지문": {
"키": "e68369418202e5ee",
"calc_user": "6d74551273d6735f",
"daega_inputs": "d26099b92d7d0a1b",
"수요": "f793204cf95c45c4",
"산근 값": "c486d041a3246ffb",
"산근 글": "a21b34ec13661f0c",
"산근 관급 값": "c5c3daf85d9bd01b",
"산근 관급 글": "a65b945fc8582ca3",
"daega_inputs": "a06884bce408c602",
"수요": "5fdf7c49052e322c",
"산근 값": "38455c2edce885ff",
"산근 글": "c41b0c2e4ae200fb",
"산근 관급 값": "d154925ee64c985c",
"산근 관급 글": "396194c98b10b525",
"미리보기 hand:rate 값": "091690571b7dc54b",
"미리보기 hand:rate 글": "c49b1bc692d59fe5",
"미리보기 hand:pick 값": "6c7f426d37e31998",
"미리보기 hand:pick 글": "96a9de9a02e3d124",
"미리보기 hand:net 값": "b1c2c650567a14ae",
"미리보기 hand:net 글": "be7884bdbeb29ed3",
"미리보기 hand:net 글": "9846e15ac6f0f663",
"B08 단위수량": "896710398b04b4fd"
}
}
+31
View File
@@ -162,3 +162,34 @@ def fingerprint(key: str, row: dict, options: bool = True) -> str:
got = [[label, answer(new_run(doc, changed))] for label, _, changed in cases(row, options)]
raw = json.dumps(got, ensure_ascii=False, sort_keys=True)
return hashlib.sha256(raw.encode("utf-8")).hexdigest()[:16]
def old_line_calls(whole, code: str, given) -> dict:
"""옛 엔진 하위 부름(855-F B9-3 전 `B09 line_calls` · 대조 기준 · 2-E4 에서 은퇴) — 로직 호표 줄
차례 → 기계경비 {machine} · 돈 로직 {code, given} · 못 셈 = None."""
from B09_Estimation import B09_Estimation_Sangeun as sg
try:
row = whole.logic(code)
env = sg._env(whole, row, sg._clean_given(given))
except (mf.FormulaError, ArithmeticError, KeyError, TypeError, ValueError):
return {}
out: dict = {}
for n, item in enumerate(row.get("호표", [])):
if item.get("종류") != "로직":
continue
try:
node = mf.parse(item["요소"])
called = node[1] if node and node[0] == "logic" else None
target = whole.logic(called) if called else None
if not target:
out[n] = None
elif mf.mb.is_machine(target):
keys = sg._captured(whole, node, env)
out[n] = {"machine": keys[0] if keys else None}
else:
given_ = {name: mf.evaluate(expr, env, whole, 1) for name, expr in node[2]}
out[n] = {"code": called, "given": sg._clean_given(given_)}
except (mf.FormulaError, ArithmeticError, KeyError, TypeError, ValueError):
out[n] = None
return out
+2 -2
View File
@@ -4,7 +4,7 @@
- 자원 키 = 옛 엔진 셈 중 `whole.get` 가로채기 키(B09 `hand_resource_keys` 방식 ·
찾기 색인 데운 뒤) — 다름 = `MORE` 뿐(새 계산기는 이름마다 셈 — 옛은 안 고른 「만약」 갈래 ·
빈 수량 줄 · 앞서 멈춘 줄을 안 읽음 · 새 쪽에만 더 있음).
- 하위 부름 = 옛 `B09 line_calls`(돈 문서 {code, given} · 기계경비 {machine}) — 다름 = 옛이 입력
- 하위 부름 = 옛 `B09 line_calls`(`helper_855_engine.old_line_calls` · 돈 문서 {code, given} · 기계경비 {machine}) — 다름 = 옛이 입력
기본값을 못 세 빈 답인 문서뿐 · 새 쪽 결과 문서 부름(작업량 등 중간 값)은 하위 산근 아님.
- 고른 품목 = `master_pick.priced` 의 품목 키 · 줄 `부름` = 그 줄 자원.
- 옛 엔진을 지우는 걸음(2-E4)에서 옛 대조(자원 · 하위)는 은퇴.
@@ -106,7 +106,7 @@ def survey() -> dict:
new = set(got["자원"])
if old != new:
out["자원"][key] = (sorted(old - new), sorted(new - old))
lines = sg().line_calls(whole, key, given)
lines = h.old_line_calls(whole, key, given) # 옛 엔진 기준(B9-3 뒤 B09 는 문서 셈)
a, b = _calls(lines, got, docs)
if a != b:
out["하위"][key] = (sorted(a), sorted(b))