First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
3

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

asked Jan 4 '12

jtrain gravatar image

updated Jan 30 '12

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

1 answer

Sort by » oldest newest most voted
3

answered Jan 16 '12

chip gravatar image

updated Jan 30 '12

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
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 gravatar imagejtrain (Jan 17 '12)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Jan 4 '12

Seen: 2,277 times

Last updated: Jan 30 '12