CloudLab CI/CD / 门禁 doctor (push) Failing after 38s
CloudLab CI/CD / 单元测试 (push) Skipped
CloudLab CI/CD / 归档完整性 (push) Skipped
CloudLab CI/CD / 构建站点与归档 (push) Skipped
CloudLab CI/CD / 部署到 lab.hdtime.space(rsync) (push) Skipped
CloudLab CI/CD / 构建镜像并推送 Gitea 容器仓库 (push) Skipped
CloudLab CI/CD / 容器部署到 lab.hdtime.space (push) Skipped
CloudLab CI/CD / 发布版本(Tag) (push) Skipped
Freeze the real-execution control plane, runner, manifests, validation cases and tests under cloudlab-platform; preserve the IDE/static web source under cloudlab-web. Generated material library and runtime state are intentionally excluded.
11 lines
876 B
Python
11 lines
876 B
Python
from pathlib import Path
|
||
p=Path('/root/dsh_workspace/cloudlab-platform/runner/run_experiment.py')
|
||
s=p.read_text(encoding='utf-8')
|
||
s=s.replace(' balance = (X - X0) + (S - Sin) / Y\n return points, {"accepted": accepted, "rejected": rejected,',
|
||
' balance = (X - X0) - Y * (Sin - S)\n return points, {"accepted": accepted, "rejected": rejected,',1)
|
||
s=s.replace(' balance = (X - X0) + (S - Sin) / Y\n threshold', ' balance = (X - X0) - Y * (Sin - S)\n threshold',1)
|
||
s=s.replace(' ["底物消耗 / Y (g/L)", "%.6f" % ((Sin - S) / Y)],\n ["质量平衡 ΔX − (−ΔS/Y) (g/L)", "%.2e" % balance],',
|
||
' ["底物消耗 × Y (g/L)", "%.6f" % (Y * (Sin - S))],\n ["质量平衡 ΔX − Y·(−ΔS) (g/L)", "%.2e" % balance],',1)
|
||
p.write_text(s,encoding='utf-8')
|
||
print('fixed')
|