First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

How to handle "takes no keyword arguments" Error

asked Mar 3 '18

Ali gravatar image

updated Apr 20 '18

Hello,

I am using load_data_5 to add a new load as follows:

ierr = psspy.load_data_5(bus, id, realar1=10)

This will throw the following error:

*** TypeError: load_data_5() takes no keyword arguments

How do I specify only the load power and leave the rest input to its default value?

Thank you for your help.

Comments

Use the interpreter help(), it's more detailed and sometimes the API.pdf has inaccuracies help(psspy.load_data_4) Help on function load_data_4 in module psspy: load_data_4(i=None, id=None, intgar=None, realar=None, **kwds)

Ascegan gravatar imageAscegan (Apr 19 '0)

2 answers

Sort by » oldest newest most voted
0

answered Apr 20 '18

Ali gravatar image

Could anyone else chime in please?

I am getting the same error for branch_chng_3 and branch_data_3.

Thank you very much in advance,

link
0

answered Mar 3 '18

perolofl gravatar image

Use load_data_4 instead.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Mar 3 '18

Seen: 17,953 times

Last updated: Apr 20 '18