Skip to content

Commit

Permalink
Merge pull request #2399 from e2nIEE/fix/station_controller
Browse files Browse the repository at this point in the history
BugFix in PF converter for station controller
  • Loading branch information
vogt31337 authored Sep 18, 2024
2 parents 11af12c + 1fe820e commit 75b80f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandapower/converter/powerfactory/pp_import_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ def create_sgen_genstat(net, item, pv_as_slack, pf_variable_p_gen, dict_net, is_

# create...
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 @@ -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 75b80f4

Please sign in to comment.