Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Since the setup is for PSSe v.34 and python 2.7, to run a PSSe python script outside the GUI:

-Locate the "PSSE 34 Command Prompt" link (in the Desktop?) to open a DOS windows (a.k.a. CMD command prompt)
- Double click such link to open a DOS window
- To change directory to the working folder if needed, in the DOS box type:
  C:\..>cd "working_folder_full_path"
- execute the python script as:
  c:\..>python27\python SMIB_BESS.py

if the 'psspy' error persist:

- From PSSE34 installation folder C:\Program Files (x86)\PTI\PSSE34\PSSPY27, copy following two files:
psse34.py
psseloc.pyc
to Python 27 installation folder C:\Python27\Lib\site-packages

and on the DOS box, execute the python script again.

Since the setup is for PSSe v.34 and python 2.7, to run a PSSe python script outside the GUI:

-Locate the "PSSE 34 Command Prompt" link (in the Desktop?) to open a DOS windows (a.k.a. CMD command prompt)
- Double click such link to open a DOS window
- To change directory to the working folder if needed, in the DOS box type:
  C:\..>cd "working_folder_full_path"
- execute the python script as:
  c:\..>python27\python SMIB_BESS.py

if the 'psspy' error persist:

- From PSSE34 installation folder C:\Program Files (x86)\PTI\PSSE34\PSSPY27, copy following two files:
psse34.py
psseloc.pyc
to Python 27 installation folder C:\Python27\Lib\site-packages

and on the DOS box, execute the python script again.

Q2.Will it be better to do it by python, not through GUI, if I want to change Paux constantly in VAR(L) of REECCU model

Yes python will allow to vary values for a given model parameter within a loop run.

Since the setup is for PSSe v.34 and python 2.7, to run a PSSe python script outside the GUI:

-Locate the "PSSE 34 Command Prompt" link (in the Desktop?) to open a DOS windows (a.k.a. CMD command prompt)
- Double click such link to open a DOS window
- To change directory to the working folder if needed, in the DOS box type:
  C:\..>cd "working_folder_full_path"
- execute the python script as:
  c:\..>python27\python SMIB_BESS.py

if the 'psspy' error persist:

- From PSSE34 installation folder C:\Program Files (x86)\PTI\PSSE34\PSSPY27, copy following two files:
psse34.py
psseloc.pyc
to Python 27 installation folder C:\Python27\Lib\site-packages

and on the DOS box, execute the python script again.

The code SMIB_BESS.py was a quick test to be run inside the GUI:

# SMIB_test.py - run this script from PSSe GUI
import os, sys
# -------------------------------------------------------------------------
# INITIALIZE PSSE
import redirect
redirect.py2psse()

To run it outside the GUI add the following two lines of code after "import os,sys":

import psse34
psspy.psseinit()

Q2.Will it be better to do it by python, not through GUI, if I want to change Paux constantly in VAR(L) of REECCU model

Yes python will allow to vary values for a given model parameter within a loop run.

Since the setup is for PSSe v.34 and python 2.7, to run a PSSe python script outside the GUI:

-Locate the "PSSE 34 Command Prompt" link (in the Desktop?) to open a DOS windows (a.k.a. CMD command prompt)
- Double click such link to open a DOS window
- To change directory to the working folder if needed, in the DOS box type:
  C:\..>cd "working_folder_full_path"
- execute the python script as:
  c:\..>python27\python SMIB_BESS.py

if the 'psspy' error persist:

- From PSSE34 installation folder C:\Program Files (x86)\PTI\PSSE34\PSSPY27, copy following two files:
psse34.py
psseloc.pyc
to Python 27 installation folder C:\Python27\Lib\site-packages

and on the DOS box, execute the python script again.

The code SMIB_BESS.py was a quick test to be run inside the GUI:

# SMIB_test.py - run this script from PSSe GUI
import os, sys
# -------------------------------------------------------------------------
# INITIALIZE PSSE
import redirect
redirect.py2psse()

To run it outside the GUI add the following two three lines of code after "import os,sys":

import psse34
import psspy
psspy.psseinit()

Q2.Will it be better to do it by python, not through GUI, if I want to change Paux constantly in VAR(L) of REECCU model

Yes python will allow to vary values for a given model parameter within a loop run.