Merge pull request '[WBS-2.3] RS(상대강도) 신호 V2 완성' (#6) from feature/wbs-2.3 into main
Reviewed-on: http://192.168.123.100:8418/KimJaeHyun/myfinance/pulls/6
This commit is contained in:
@@ -124,7 +124,7 @@ def run() -> dict:
|
||||
"target_date": ACTIVATION_DATE_TARGET,
|
||||
"message": (
|
||||
f"live_t20={live_t20_count}/{LIVE_T20_THRESHOLD} "
|
||||
f"({progress_pct}%) — 목표일 {ACTIVATION_DATE_TARGET}까지 "
|
||||
f"({progress_pct}%) - 목표일 {ACTIVATION_DATE_TARGET}까지 "
|
||||
f"{days_remaining}일 잔여"
|
||||
),
|
||||
"transition_checks": [],
|
||||
@@ -141,14 +141,14 @@ def run() -> dict:
|
||||
"progress_pct": 100.0,
|
||||
"message": (
|
||||
f"live_t20 임계값 도달({live_t20_count}건). "
|
||||
f"전환 조건 {'전부 PASS' if all_pass else '일부 FAIL — 재빌드 필요'}."
|
||||
f"전환 조건 {'전부 PASS' if all_pass else '일부 FAIL - 재빌드 필요'}."
|
||||
),
|
||||
"transition_checks": transition_checks,
|
||||
"all_transitions_complete": all_pass,
|
||||
}
|
||||
|
||||
OUTPUT_PATH.parent.mkdir(parents=True, exist_ok=True)
|
||||
OUTPUT_PATH.write_text(json.dumps(result, ensure_ascii=False, indent=2))
|
||||
OUTPUT_PATH.write_text(json.dumps(result, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||
return result
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ def main() -> None:
|
||||
if gate == "FAIL":
|
||||
failed = [c for c in result.get("transition_checks", []) if not c["passed"]]
|
||||
for f in failed:
|
||||
print(f" FAIL: {f['condition']} — actual={f['actual']} target={f['target']}")
|
||||
print(f" FAIL: {f['condition']} - actual={f['actual']} target={f['target']}")
|
||||
sys.exit(1)
|
||||
if gate == "PENDING":
|
||||
sys.exit(0) # PENDING은 오류가 아님, 정상 진행 중
|
||||
|
||||
Reference in New Issue
Block a user