Python PSS / E wird als Variable ausgegeben

Ich bin Power Engineer und benutze oft Python im PSS / E-Programm. Ich bin gestapelt und ich möchte Ihre Hilfe als Programmierer. Ich habe diesen kleinen Code:

import os,sys

PSSE_LOCATION = r"C:\Program Files\PTI\PSSE33\PSSBIN"
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' +  PSSE_LOCATION

import psspy
import redirect
redirect.psse2py()

#--------------------------------
# PSS/E Saved case

CASE = r"""D:\xxx\Desktop\TESTING\SUMMAX.sav"""

if __name__ == '__main__':
    psspy.psseinit(2000)
    psspy.case(CASE)
    psspy.fnsl(
        options1=0, # disable tap stepping adjustment.
        options5=0, # disable switched shunt adjustment.
    )
    psspy.fdns([0,0,0,1,1,0,99,0])
    psspy.area_2(0,1,1)

Coderedirect.psse2py() druckt den Programmbericht in der Konsole. Können Sie mir helfen, diese Ausgaben als Variable zu erhalten?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage