3

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

jtrain's avatar
411
jtrain
asked 2012-01-04 01:53:00 -0500
JervisW's avatar
1.3k
JervisW
updated 2012-01-30 00:49:38 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

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
chip's avatar
459
chip
answered 2012-01-16 09:49:01 -0500
JervisW's avatar
1.3k
JervisW
updated 2012-01-30 00:52:35 -0500
edit flag offensive 0 remove flag delete link

Comments

1

A general purpose case loading function, good idea. I'll try this back on the work computer. After I posted the question I found READRAWVERSION in the docs. Haven't had a chance to test it though. Will report back on the results.

jtrain's avatar jtrain (2012-01-16 19:16:14 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer