Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error using python to apply bus fault

This is the code I use:

psspy.dist_bus_fault_2(201,1,0.0,[1,1,201,1],[0.0,-2.0E11,0.0,0.0,0.0,0.0])

But when I run this code, PSSE reply:

TypeError: function takes exactly 4 arguments (5 given)

But I read the API Document(Page 1432/2366:4.13.8 DISTBUSFAULT_2) it says:

Python syntax: ierr = distbusfault_2(ibus, units, basekv, options, values)

5 arguments are given in this function, and I don't know how to handle this problem, could anyone help me? Thanks a lot!