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

Dear writer,I need your help,please! #1

Open
learningelectric opened this issue Oct 18, 2020 · 1 comment
Open

Dear writer,I need your help,please! #1

learningelectric opened this issue Oct 18, 2020 · 1 comment

Comments

@learningelectric
Copy link

when I process,I really don't know why
"TypeError: create_load() got an unexpected keyword argument 'p_kw'".

D:\anaconda3\envs\pandapower\python.exe D:/pycharm/pandapower/ieee/build_ieee_cases.py
Traceback (most recent call last):
File "D:/pycharm/pandapower/ieee/build_ieee_cases.py", line 53, in
net1=build_case33(df33)
File "D:/pycharm/pandapower/ieee/build_ieee_cases.py", line 29, in build_case33
pp.create_load(net,bus=int(row['to']),p_kw=float(row['P']),q_kvar=float(row['Q']))
TypeError: create_load() got an unexpected keyword argument 'p_kw'

Process finished with exit code 1

@xiaoniumang
Copy link
Owner

you can check the pp.creat_load() function in the user datasheet of pandapower. It seems the keyword of giving load power has changed from 'p_kw' to somethingelse. You can change the p_kw to p_mw, and q_kvar to q_mvar. Please check the function below.

pandapower.create_load(net, bus, p_mw, q_mvar=0, const_z_percent=0, const_i_percent=0, sn_mva=nan, name=None, scaling=1.0, index=None, in_service=True, type='wye', max_p_mw=nan, min_p_mw=nan, max_q_mvar=nan, min_q_mvar=nan, controllable=nan)

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