Phase C/dry-run·미사용 모듈·재생성 HTML을 제거하고, 운영 체결을 sim_causal_hybrid와 동일한 hybrid 로직으로 통합한다. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
870 B
Python
33 lines
870 B
Python
#!/usr/bin/env python3
|
|
"""05: Ground Truth JSON → HTML 차트 (기본: JSON만 반영, --regenerate 시 02 재실행)."""
|
|
import argparse
|
|
import runpy
|
|
from pathlib import Path
|
|
|
|
runpy.run_path(str(Path(__file__).resolve().parent / "_bootstrap.py"))
|
|
|
|
from deepcoin.ops import simulation
|
|
|
|
|
|
def main() -> None:
|
|
parser = argparse.ArgumentParser(description="Ground Truth HTML 차트")
|
|
parser.add_argument(
|
|
"--regenerate",
|
|
action="store_true",
|
|
help="DB에서 GT JSON을 다시 생성한 뒤 HTML 작성",
|
|
)
|
|
parser.add_argument(
|
|
"--no-browser",
|
|
action="store_true",
|
|
help="브라우저 자동 열기 생략",
|
|
)
|
|
args = parser.parse_args()
|
|
simulation.run_ground_truth_chart(
|
|
open_browser=not args.no_browser,
|
|
from_json=not args.regenerate,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|