|
|
@@ -447,11 +447,16 @@ def _section_conclusion(doc, data: Dict[str, Any]):
|
|
|
)
|
|
|
L._para(doc, f"· 能效低机组(发电量排名末 5):{names}。", indent=False, size=10)
|
|
|
|
|
|
- if h.get("available") and h.get("low_turbines"):
|
|
|
- items = []
|
|
|
- for t in h["low_turbines"][:8]:
|
|
|
- items.append(f"{t.get('name') or t.get('code')}({_num(t.get('score'), 2, ' 分')},{_worst_subsystem(t)})")
|
|
|
- L._para(doc, f"· 健康低分机组(<70 分):{';'.join(items)}。", indent=False, size=10)
|
|
|
+ if h.get("available") and h.get("turbines"):
|
|
|
+ ranked = sorted(
|
|
|
+ [t for t in h["turbines"] if (t.get("score") or -1) >= 0],
|
|
|
+ key=lambda x: x.get("score") or 0,
|
|
|
+ )[:5]
|
|
|
+ if ranked:
|
|
|
+ items = []
|
|
|
+ for t in ranked:
|
|
|
+ items.append(f"{t.get('name') or t.get('code')}({_num(t.get('score'), 2, ' 分')},{_worst_subsystem(t)})")
|
|
|
+ L._para(doc, f"· 健康重点关注机组(得分最低 5 台):{';'.join(items)}。", indent=False, size=10)
|
|
|
|
|
|
if f.get("available") and f.get("turbines"):
|
|
|
ft = sorted(f["turbines"], key=lambda x: x.get("count") or 0, reverse=True)[:8]
|