fix: remove 20-map limit in formula report - all distribution maps now included, AI limit still controlled by ai_maps_limit
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user