Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After adjusting for v.35.3, the code below runs ok:

import os,sys
# PSSE_LOCATION = r"C:\Program Files\PTI\PSSE35\35.3" 
# sys.path.append(PSSE_LOCATION) 
# os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION
# 
# import pssepath 
# pssepath.add_pssepath()
import psse35
import psspy
psspy.psseinit(2000)

if __name__ == '__main__':
    CASE = r"C:\Program Files\PTI\PSSE35\35.3\EXAMPLE\savnw.sav"
    psspy.case(CASE) 
    psspy.fnsl(options1=0, # disable tap stepping adjustment.
               options5=0) # disable switched shunt adjustment.