a87f453326
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>
25 lines
689 B
Python
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.") |