From 6f4717662a37c5268be95b956ed2bc3ab1b6dd6c Mon Sep 17 00:00:00 2001 From: duxin Date: Fri, 10 Jul 2026 12:49:14 +0800 Subject: [PATCH] fix: remove 20-map limit in formula report - all distribution maps now included, AI limit still controlled by ai_maps_limit --- src/postprocessing/report_word.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/postprocessing/report_word.py b/src/postprocessing/report_word.py index c008ab4..8853b6a 100644 --- a/src/postprocessing/report_word.py +++ b/src/postprocessing/report_word.py @@ -1107,8 +1107,7 @@ class WaterQualityReportGenerator: figure_num += 1 maps_found = 0 if tif_files: - n_show = min(len(tif_files), 20) - for i_t, tf in enumerate(tif_files[:n_show]): + for i_t, tf in enumerate(tif_files): try: param_name = tf.stem.split('_')[0] if '_' in tf.stem else tf.stem caption = f"图{figure_num} {param_name} 空间分布图" @@ -1122,9 +1121,7 @@ class WaterQualityReportGenerator: maps_found += 1 except Exception as e: doc.add_paragraph(f"[专题图插入失败: {tf.name} — {e}]") - _next(f"专题图 {i_t+1}/{n_show}") - if len(tif_files) > 20: - doc.add_paragraph(f"... 共 {len(tif_files)} 张专题图,此处仅展示前 20 张。") + _next(f"专题图 {i_t+1}/{len(tif_files)}") else: doc.add_paragraph(f"(未找到专题图目录: {thematic_dir})") if maps_found == 0: