Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Complex generation: get the Real par and Imagine part

Hi!

I try to obtain the plant total power output from the Bus WF

CMPVAL2 =psspy.gendat(Bus_WF)
psspy.progress('  REAL_SCMPVAL  ' +str(CMPVAL2[1].real)+'\n')
psspy.progress('  IMA_SCMPVAL  ' +str(CMPVAL2[1].imag)+'\n')

I have the following error AttributeError: 'NoneType' object has no attribute 'real'

Also, I created a variable for keeping the REAL_MW = CMPVAL2[1].real but I received the same error.

I donĀ“t know what is happening, Somebody can help me?

Thank you a lot!