QGIS完成初步重构

This commit is contained in:
wzy-warehouse
2026-06-20 16:14:28 +08:00
parent 18d8bcb1a3
commit 943f32cafd
3 changed files with 43 additions and 68 deletions
+4 -4
View File
@@ -433,16 +433,16 @@ def _generate_batch_maps(models: list, config: dict, disaster_time: str) -> None
if line.startswith("{"):
output = json.loads(line)
batch_results = output.get("results", [])
success_count = sum(1 for r in batch_results if r.get("success"))
success_count = sum(1 for r in batch_results if "error" not in r)
fail_count = len(batch_results) - success_count
logger.info(
f"[批量产图] 完成: 成功={success_count}, 失败={fail_count}"
)
for r in batch_results:
if r.get("success"):
logger.info(f" {r.get('output', 'N/A')}")
if "error" not in r:
logger.info(f" OK {r.get('output', 'N/A')}")
else:
logger.error(f" {r.get('error', 'unknown')}")
logger.error(f" FAIL {r.get('error', 'unknown')}")
break
else:
logger.warning("[批量产图] 子进程输出中未找到 JSON 结果")