How do I open a version 29 raw file in version 30 PSS/E?
I have been given a raw file from one of our customers and it is version 29. How can I open it with Python in Version 32? Thanks
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
I have been given a raw file from one of our customers and it is version 29. How can I open it with Python in Version 32? Thanks
To read in an older version of PSSE's raw file use the readrawversion
function:
psspy.readrawversion(numnam=0, # treat bus numbers as unique
vernum='29', # read in version 29.
ifile=r'c:\documents\version_29_study.raw')
I've been using psspy.read() to open raw files. I'm not sure if there's any tricks to make it work with an older version, here's the code I've been using to open either a .raw or .sav file:
ext = os.path.splitext(inCase)[1]
if ext == '.raw':
ierr = psspy.read(0, inCase)
else:
ierr = psspy.case(inCase)
if ierr:
print "Something went wrong when i tried to load %s" % inCase
return ierr
Asked: 2012-01-04 01:53:00 -0600
Seen: 2,235 times
Last updated: Jan 30 '12