|
|
|
@ -422,8 +422,8 @@ def main():
|
|
|
|
# rata-rata 3 tahun terakhir untuk net_capacity_factor
|
|
|
|
# rata-rata 3 tahun terakhir untuk net_capacity_factor
|
|
|
|
eaf_history.append(eaf_v)
|
|
|
|
eaf_history.append(eaf_v)
|
|
|
|
cf_history.append(net_capacity_factor_v)
|
|
|
|
cf_history.append(net_capacity_factor_v)
|
|
|
|
last_3_eaf = eaf_history[-3:]
|
|
|
|
last_3_eaf = eaf_history[-4:-1]
|
|
|
|
last_3_cf = cf_history[-3:]
|
|
|
|
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_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
|
|
|
|
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)
|
|
|
|
selisih_eaf_cf = abs(avg_cf_3 - avg_eaf_3)
|
|
|
|
|