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

savecase fails when solving OPF of IEEE RTS from command line #21

Open
rwl opened this issue Jun 22, 2015 · 1 comment
Open

savecase fails when solving OPF of IEEE RTS from command line #21

rwl opened this issue Jun 22, 2015 · 1 comment

Comments

@rwl
Copy link
Owner

rwl commented Jun 22, 2015

As reported by Prabakaran on the mailing list:

I recently installed PYPOWER in my Ubuntu 14.04, Python 2.7.6, scipy 0.13.3 and ran the sample commands given in GitHub project page's readme. When running the command,

$ opf -c case24_ieee_rts --solvedcase=rtsout.py

to solve an OPF for the IEEE Reliability Test System and write the solved case to file.

@mfripp
Copy link

mfripp commented Oct 7, 2015

If you're getting the message TypeError: %d format: a number is required, not numpy.ndarray, this seems to be a bug in savecase.py. You can fix it by changing line 143 of savecase.py (the file location should be referenced in the traceback that is printed when the error occurs). Near the end of line 143, change
bus[:, :MU_VMIN + 1]
to
bus[i, :MU_VMIN + 1]
(i.e., change the first colon to an i).

nickpowersys added a commit to nickpowersys/PYPOWER that referenced this issue Jul 17, 2016
rwl added a commit that referenced this issue Jul 18, 2016
For automatic status update for fixed issue #21 and fixed issue #25.
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