Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

So I decided to just make extra code to make it work, so here is how I did it, but I hope there is a single line/more elegant manner to complete it.

exist_load = psspy.busdt2(int(bus[0]),'MVA','ACT')
#gets returned as a list [0,MW+MVARj]
Y = exist_load[1]
Z = (Y.real, Y.imag)
MW = Y.real
MVAR = Y.imag