Skip to content
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

IndexError due to 'ext2int.py' of 'runpf.py' #82

Open
HafizRiaz opened this issue Aug 19, 2023 · 1 comment
Open

IndexError due to 'ext2int.py' of 'runpf.py' #82

HafizRiaz opened this issue Aug 19, 2023 · 1 comment

Comments

@HafizRiaz
Copy link

Dear Author, i am trying to run a repository that utilizes the PYPOWER's opf.py file to run power flow but when it calls the 'ext2int.py' to convert to continuous indexing starting from 0,it gives following error. IndexError: index 23 is out of bounds for axis 0 with size 23. if ou could help me resolve this issue, i would be thankful to you and it will assist to my phd research. Thanks for consideration.

@JunyanHuang
Copy link

Pypower is based Matpower of Matlab, which means it has a fatal flaw -- all indices begin from 1 rather than 0. So you have to mannually adjust it to meet Python's demand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants