Skip to content

Commit

Permalink
bugfix powerflow algorithm id for fdxb, fdbx (closes #2142)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbolgaryn committed Oct 24, 2023
1 parent 3544151 commit 3e5dd89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Change Log
- [CHANGED] PowerFactory converter - name :code:`for_name` as :code:`equipment` for all elements; also add to line
- [ADDED] option to use a second tap changer for the trafo element
- [FIXED] :code:`convert_format.py`: update the attributes of the characteristic objects to match the new characteristic
- [FIXED] fixed the wrong id numbers for pypower powerflow algorithms fdxb and fdbx


[2.13.1] - 2023-05-12
Expand Down
2 changes: 1 addition & 1 deletion pandapower/pf/runpf_pypower.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _get_options(options, **kwargs):
max_iteration = options["max_iteration"]

# algorithms implemented within pypower
algorithm_pypower_dict = {'nr': 1, 'fdbx': 2, 'fdxb': 3, 'gs': 4}
algorithm_pypower_dict = {'nr': 1, 'fdxb': 2, 'fdbx': 3, 'gs': 4}

Check warning on line 81 in pandapower/pf/runpf_pypower.py

View check run for this annotation

Codecov / codecov/patch

pandapower/pf/runpf_pypower.py#L81

Added line #L81 was not covered by tests

ppopt = ppoption(ENFORCE_Q_LIMS=enforce_q_lims, PF_TOL=tolerance_mva,
PF_ALG=algorithm_pypower_dict[algorithm], **kwargs)
Expand Down

0 comments on commit 3e5dd89

Please sign in to comment.