From b73f42272926108fc037f29a6f3b6cce4f33979a Mon Sep 17 00:00:00 2001 From: "gintautas.poderys" Date: Thu, 2 Jan 2025 15:51:09 +0200 Subject: [PATCH] bugfix for function get_model_outages --- emf/loadflow_tool/helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emf/loadflow_tool/helper.py b/emf/loadflow_tool/helper.py index 299a93a..28915c4 100644 --- a/emf/loadflow_tool/helper.py +++ b/emf/loadflow_tool/helper.py @@ -516,8 +516,8 @@ def get_model_outages(network: pypowsybl.network): disconnected_dlines = dlines[dlines['connected'] == False] disconnected_gens = gens[gens['connected'] == False] - outage_log.extend(disconnected_lines[['grid_id', 'name', 'country', 'element_type']].to_dict('records')) - outage_log.extend(disconnected_dlines[['grid_id', 'name', 'country', 'element_type']].to_dict('records')) - outage_log.extend(disconnected_gens[['grid_id', 'name', 'country', 'element_type']].to_dict('records')) + outage_log.extend(disconnected_lines[['grid_id', 'name', 'element_type']].to_dict('records')) + outage_log.extend(disconnected_dlines[['grid_id', 'name', 'element_type']].to_dict('records')) + outage_log.extend(disconnected_gens[['grid_id', 'name', 'element_type']].to_dict('records')) return outage_log