0

How to handle "takes no keyword arguments" Error

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.

Ali's avatar
26
Ali
asked 2018-03-02 18:22:16 -0500, updated 2018-04-20 17:18:35 -0500
edit flag offensive 0 remove flag close merge delete

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's avatar Ascegan (2020-04-18 18:56:03 -0500) edit
add a comment see more comments

2 Answers

0

Use load_data_4 instead.

perolofl's avatar
3.8k
perolofl
answered 2018-03-03 02:54:41 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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,

Ali's avatar
26
Ali
answered 2018-04-20 17:17:12 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer