完整数据版补上研究口径的推运、次小运和细分盘(#92)。
研究章在渲染时计算,不写入资料包。四种星座大运次小运和 Kalachakra 第三层不改原来的主运、子运。D81、D108、D144 只留在研究章。 自测:test_research_timing、星座大运、域读取、卫生预算、真恒星、jhora 扫描、API 增长、六章标题、英文版。三张虚构盘中英出稿都低于 180 秒。PyJHora 已导入但未做逐层对照。 Co-Authored-By: Grok (agent loop)
This commit is contained in:
co-authored by
Grok (agent loop)
parent
85e8adddbc
commit
d45e65a9ec
@@ -0,0 +1,43 @@
|
||||
"""Offline PyJHora comparison for the research timing appendix.
|
||||
|
||||
Pytest does not import this file. The runtime report does not import it either.
|
||||
If PyJHora is absent, the result is ``not_run`` and the report grows no mismatch label.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def main() -> int:
|
||||
root = Path(__file__).resolve().parents[2]
|
||||
out = root / "docs" / "tasks" / "research-timing-pyjhora-20261023.json"
|
||||
try:
|
||||
import jhora # noqa: F401
|
||||
except ImportError as exc:
|
||||
payload = {
|
||||
"status": "not_run",
|
||||
"charts": 0,
|
||||
"reason": "PyJHora is not installed in this interpreter",
|
||||
"error_type": type(exc).__name__,
|
||||
"mismatches": [],
|
||||
}
|
||||
out.write_text(json.dumps(payload, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
|
||||
print(out)
|
||||
print("not_run")
|
||||
return 0
|
||||
payload = {
|
||||
"status": "not_compared",
|
||||
"charts": 0,
|
||||
"reason": "PyJHora imported, but this pass does not guess a mismatch without a completed comparison",
|
||||
"mismatches": [],
|
||||
}
|
||||
out.write_text(json.dumps(payload, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
|
||||
print(out)
|
||||
print("imported")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in New Issue
Block a user