Files
tps-dashboard/doco/programs/ep002_20260127_qianting_fangsheng/_wait_compose.py
T
simonkoson a87f453326 doco: ep002全流程完工(P1→C4) + CLAUDE.md收摊更新
ep002(潜艇仿生)全部产物入库:B稿v2(733行)/ASR(411句)/融合B稿/
融合A稿.docx/c4_alignment.csv等。fusion_align.py修复align_batch
崩溃bug。CLAUDE.md更新ep002完工状态、新增分段偏差根因和MiMo批次
失败率两条关键决策。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-23 08:15:41 +08:00

25 lines
689 B
Python

# -*- coding: utf-8 -*-
"""轮询等待 C4 compose 完成"""
import time
from pathlib import Path
ep_dir = Path(r"E:\tps-dashboard\doco\programs\ep002_20260127_qianting_fangsheng")
cache_dir = ep_dir / ".c4_cache"
docx_out = ep_dir / "融合A稿.docx"
while True:
if not cache_dir.exists():
print(f"[{time.strftime('%H:%M:%S')}] .c4_cache not yet, waiting 30s...")
time.sleep(30)
continue
n = len(list(cache_dir.iterdir()))
print(f"[{time.strftime('%H:%M:%S')}] cache batches: {n}")
if docx_out.exists():
print(f"\n融合A稿.docx exists! ({docx_out.stat().st_size} bytes)")
break
time.sleep(120)
print("Done.")