Ask Your Question
3

How do I open a version 29 raw file in version 30 PSS/E?

asked 2012-01-04 01:53:00 -0600

jtrain gravatar image

updated 2012-01-30 00:49:38 -0600

JervisW gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2012-01-16 09:49:01 -0600

chip gravatar image

updated 2012-01-30 00:52:35 -0600

JervisW gravatar image

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
edit flag offensive delete link more

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 gravatar imagejtrain ( 2012-01-16 19:16:14 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2012-01-04 01:53:00 -0600

Seen: 1,717 times

Last updated: Jan 30 '12