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 in runpf.py, line 212 #70

Open
Learwzr opened this issue Nov 23, 2021 · 1 comment
Open

IndexError in runpf.py, line 212 #70

Learwzr opened this issue Nov 23, 2021 · 1 comment

Comments

@Learwzr
Copy link

Learwzr commented Nov 23, 2021

I meet an error when using runpf (enforce q limit):

Traceback (most recent call last):
File "/data2/wzr/opf/data/generate_data.py", line 31, in
results, success = runpf(ppc, opt)
File "/data2/wzr/anaconda3/envs/opf/lib/python3.7/site-packages/pypower/runpf.py", line 212, in runpf
(bus[gen[:, GEN_BUS], BUS_TYPE] == PV |
IndexError: arrays used as indices must be of integer (or boolean) type

Maybe the gen[:, GEN_BUS] is not integer type.

please help!

@Bengt
Copy link
Collaborator

Bengt commented Nov 23, 2021

If I remember correctly, this is caused by an incompatible version please double check that you installed the correct library versions.

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