First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi there,
If I understand your requirement correctly then we had a similar problem for some scripts we wrote.
We needed a way to set up our Python scripts so that they could run on any version of PSSE (even if there were multiples installed on the same machine.)
@Daniel_Hillier and @chip wrote a library that deals with that problem. They open sourced it here: https://github.com/danaran/pssepath. You are most welcome to use it.
Here is how you would set the script to use PSSE32
import pssepath
pssepath.add_pssepath(32)
import psspy # continue as normal
and here is for PSSEv33
import pssepath
pssepath.add_pssepath(33)
import psspy
The script should work with any PSSE version. If you find any mistakes in the code, you can post them here, or even open a ticket on github.