Skip to content

Commit

Permalink
bugfix for function get_model_outages
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoderys committed Jan 2, 2025
1 parent df06d74 commit b73f422
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emf/loadflow_tool/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b73f422

Please sign in to comment.