-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
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
[feature] KeyError: 'bus_dc' #2413
Comments
Hi @quant12345, can you test this on |
Hi @yasirroni, my modest knowledge in this area is not enough. I have not yet figured out how the data is formed. I can assume that a dataframe should be created in the 'bus_dc' table, but it is not clear where it is formed. The error clearly says that there is no such key in the dictionary. the following failure:
I have the same thing locally in tests, except for the lines with |
Hi @quant12345, I finally success installing |
Change to stable branch on master, test passed. Thanks @SimonUlm. |
@quant12345 is this stil relevant? |
@vogt31337 I saw that in PR #2455 tests for |
There was some unnecessary key dropping from the net object in the result extraction from PandaModels. Thanks for mentioning this issue to me. |
Feature Checklist
Searched the issues page for similar feature requests
Read the relevant sections of the documentation
Browse the repository, tutorials and tests for already existing functionalities
Feature Type
Adding new functionality to pandapower
Changing existing functionality in pandapower
Removing existing functionality in pandapower
Problem Description
In the julia build (3.9, 2) I see three tests with an error:
KeyError: 'bus_dc'
.I assume this is because a non-existent key is being accessed.
results.py -> _get_aranged_lookup - row 83
this line:
if len(net[bus_table]) == 0:
Running the test:
pytest pandapower/test/opf/test_pandamodels_runpm.py::test_runpm_multi_vstab
I tried adding setdefault before the line that causes the error:
net.setdefault(bus_table, np.array([], dtype=np.int64))# creates a dictionary key if it doesn't exist
but another error occurs:
FAILED pandapower/test/opf/test_pandamodels_runpm.py::test_runpm_multi_vstab - AttributeError: 'numpy.ndarray' object has no attribute 'index'
I haven't been able to figure out how the 'bus_dc' data is formed yet. Or is it in development and not ready yet?
Feature Description
Additional Context
No response
Label
The text was updated successfully, but these errors were encountered: