We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searched the issues page for similar reports
Read the relevant sections of the documentation
Browse the tutorials and tests for usefull code snippets and examples of use
Reproduced the issue after updating with pip install --upgrade pandapower (or git pull)
pip install --upgrade pandapower
git pull
Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
# I had to dive deep in the code to find this error, it's not reproducible "as is" as it is a mixed up between fdxb and fdbx somewhere in a file.
In pandapower/pf/runpf_pypower.py line81 there is:
algorithm_pypower_dict = {'nr': 1, 'fdbx': 2, 'fdxb': 3, 'gs': 4} see pandapower/pandapower/pf/runpf_pypower.py Line 81 in 80ca87d algorithm_pypower_dict = {'nr': 1, 'fdbx': 2, 'fdxb': 3, 'gs': 4}
algorithm_pypower_dict = {'nr': 1, 'fdbx': 2, 'fdxb': 3, 'gs': 4} see
pandapower/pandapower/pf/runpf_pypower.py
Line 81 in 80ca87d
This would imply that fdbx is the algorithm id 2.
But I think "fdxb" and "fdbx" are mixed up. Indeed:
In pypower (module pandapower/pypower), it is written that alg==2 is XB method, see for example: https://github.com/e2nIEE/pandapower/blob/80ca87dbb991c682f56e48ea90ea4035be3dff6c/pandapower/pypower/makeB.py#L36C7-L36C8
alg==2
We can also see that the XB method is alg 2 here: https://github.com/e2nIEE/pandapower/blob/80ca87dbb991c682f56e48ea90ea4035be3dff6c/pandapower/pypower/ppoption.py#L14C1-L14C1
I think the code should be replaced by:
algorithm_pypower_dict = {'nr': 1, 'fdbx': 3, 'fdxb': 2, 'gs': 4}
I just look at the code in the repo, so all version with current code are concerned (and this bug probably originates a long time ago)
The text was updated successfully, but these errors were encountered:
Hi @BDonnot, thank you! I will adjust it.
Best regards, Roman
Sorry, something went wrong.
bugfix powerflow algorithm id for fdxb, fdbx (closes e2nIEE#2142)
3e5dd89
Merge pull request #2156 from rbolgaryn/fix/fdxb_algorithm_id
b254347
bugfix powerflow algorithm id for fdxb, fdbx (closes #2142)
Successfully merging a pull request may close this issue.
Bug report checklis
Searched the issues page for similar reports
Read the relevant sections of the documentation
Browse the tutorials and tests for usefull code snippets and examples of use
Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
)Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
# I had to dive deep in the code to find this error, it's not reproducible "as is" as it is a mixed up between fdxb and fdbx somewhere in a file.
Issue Description and Traceback
In pandapower/pf/runpf_pypower.py line81 there is:
This would imply that fdbx is the algorithm id 2.
But I think "fdxb" and "fdbx" are mixed up. Indeed:
In pypower (module pandapower/pypower), it is written that
alg==2
is XB method, see for example:https://github.com/e2nIEE/pandapower/blob/80ca87dbb991c682f56e48ea90ea4035be3dff6c/pandapower/pypower/makeB.py#L36C7-L36C8
We can also see that the XB method is alg 2 here:
https://github.com/e2nIEE/pandapower/blob/80ca87dbb991c682f56e48ea90ea4035be3dff6c/pandapower/pypower/ppoption.py#L14C1-L14C1
Expected Behavior
I think the code should be replaced by:
Installed Versions
I just look at the code in the repo, so all version with current code are concerned (and this bug probably originates a long time ago)
Label
The text was updated successfully, but these errors were encountered: