Skip to content

Commit

Permalink
allow import from PowerFactory with VSC as slack (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbolgaryn authored Feb 5, 2024
1 parent 7086cf7 commit 30d6205
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Change Log
- [FIXED] avoid attaching elements as duplicates to a group where some of the elements already exist
- [ADDED] the function :code:`run_contingency` can raise a captured error if parameter :code:`raise_errors` is passed
- [FIXED] bugfix for tap dependent impedance characteristics so that not all characteristics columns are necessary
- [FIXED] in function :code:`toolbox.replace_zero_branches_with_switches`, use absolute for the parameters of impedance elements in case they are negative nonzero values

[2.13.1] - 2023-05-12
-------------------------------
Expand Down
9 changes: 5 additions & 4 deletions pandapower/toolbox/grid_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,10 +977,11 @@ def replace_zero_branches_with_switches(net, elements=('line', 'impedance'), zer
].index.tolist())

if elm == 'impedance' and zero_impedance:
branch_zero.update(net[elm].loc[(net[elm].rft_pu <= min_rft_pu) &
(net[elm].xft_pu <= min_xft_pu) &
(net[elm].rtf_pu <= min_rtf_pu) &
(net[elm].xtf_pu <= min_xtf_pu)].index.tolist())
# using np.abs() here because the impedance parameters can have negative values e.g. after grid reduction:
branch_zero.update(net[elm].loc[(np.abs(net[elm].rft_pu) <= min_rft_pu) &
(np.abs(net[elm].xft_pu) <= min_xft_pu) &
(np.abs(net[elm].rtf_pu) <= min_rtf_pu) &
(np.abs(net[elm].xtf_pu) <= min_xtf_pu)].index.tolist())

affected_elements = set()
for b in branch_zero:
Expand Down

0 comments on commit 30d6205

Please sign in to comment.