Skip to content

Instantly share code, notes, and snippets.

@jtrain
Created July 31, 2011 05:47
Show Gist options
  • Save jtrain/1116453 to your computer and use it in GitHub Desktop.
Save jtrain/1116453 to your computer and use it in GitHub Desktop.
External Interpreter Environment setup for PSSE Example
"""
featured on our blog all about PSSE and Python:
blog.whit.com.au
"""
import os,sys
PSSE_LOCATION = r"C:\Program Files\PTI\PSSE32\PSSBIN"
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION
import psspy
#--------------------------------
# PSS/E Saved case
CASE = r"C:\Program Files\PTI\PSSE32\EXAMPLE\savnw.sav"
if __name__ == '__main__':
psspy.psseinit(2000)
psspy.case(CASE)
psspy.fnsl(
options1=0, # disable tap stepping adjustment.
options5=0, # disable switched shunt adjustment.
)
@danifus
Copy link

danifus commented Feb 3, 2012

the keyword arguments should be:

options1=0,
options5=0

@jtrain
Copy link
Author

jtrain commented Feb 4, 2012

How right you are. Cheers Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment