Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Initialise PSSE before the loop and perform case and Predyr before the if-statements.

psspy.psseinit(10000) #initialize PSSE
for i in range(1,16):
    psspy.case(r"""C:\Users\bbbb4\Downloads\112L-150M.sav""")
    Predyr()
    if i==1:#case 1
        psspy.strt(0,r"""C:\Users\bbbb4\Downloads\112L-150M\case1.out""")
        #### here's the code of event 1 ####
    if i==2:#case 1-1
        psspy.strt(0,r"""C:\Users\bbbb4\Downloads\112L-150M\case1-1.out""")
        #### here's the code of event 2####