From d41899dcb56f954b67d3a7bd0e983bcab9fbe880 Mon Sep 17 00:00:00 2001 From: ariwahyunahar Date: Fri, 26 Dec 2025 08:13:30 +0700 Subject: [PATCH] plant/run2.py -> perubahan rumus pengambilan 3 rata2 data terakhir, menjadi 3 terakhir sebelumnya -> last_3_eaf = eaf_history[-4:-1] --- src/modules/plant/run2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/plant/run2.py b/src/modules/plant/run2.py index ec18b72..6b22b3d 100644 --- a/src/modules/plant/run2.py +++ b/src/modules/plant/run2.py @@ -422,8 +422,8 @@ def main(): # rata-rata 3 tahun terakhir untuk net_capacity_factor eaf_history.append(eaf_v) cf_history.append(net_capacity_factor_v) - last_3_eaf = eaf_history[-3:] - last_3_cf = cf_history[-3:] + last_3_eaf = eaf_history[-4:-1] + last_3_cf = cf_history[-4:-1] avg_eaf_3 = sum(last_3_eaf) / len(last_3_eaf) if last_3_eaf else 0 avg_cf_3 = sum(last_3_cf) / len(last_3_cf) if last_3_cf else 0 selisih_eaf_cf = abs(avg_cf_3 - avg_eaf_3)