Skip to content

Commit

Permalink
BugFix in PF converter for station controller
Browse files Browse the repository at this point in the history
  • Loading branch information
hilbrich committed Sep 17, 2024
1 parent 11af12c commit 8a8e5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandapower/converter/powerfactory/pp_import_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ def create_sgen_sym(net, item, pv_as_slack, pf_variable_p_gen, dict_net, export_

pstac = item.c_pstac
# "None" if station controller is not available
if pstac is not None and export_ctrl:
if pstac is not None and not pstac.outserv and export_ctrl:
if pstac.i_droop:
av_mode = 'constq'
else:
Expand Down Expand Up @@ -3139,7 +3139,7 @@ def create_stactrl(net, item):
distribution.append(item.cvqq / 100)
i = i + 1

if item.imode != 0:
if item.imode > 2:
raise NotImplementedError(f"{item}: reactive power distribution {item.imode=} not implemented")

phase = item.i_phase
Expand Down

0 comments on commit 8a8e5c5

Please sign in to comment.