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

Ask Your Question
0

.raw to .py (or .idv) conversion

asked May 22 '4

Is there a way to convert .raw files into a .py (or .idv) script instead of importing the raw file?

I know that I could record the loading of the raw file and have the .py/.idv command (psspy.rdch("...")), which is my "Plan B". Instead, I am looking for transforming the .raw into an equivalent .py (or .idv)

1 answer

Sort by » oldest newest most voted
1

answered May 24 '4

Tassie Dave gravatar image

I would go with plan B. Simple and straightforward. You could in principle replicate everything in the raw file with individual commands, but that would change your code from one line of python to potentially hundreds of lines. I don't see why you would want to do that.

link

Comments

My main reason is for ease of reading. I am doing multiple changes to my sav case, and all the changes (except two) are stored as .py. So, they could be merged into a single .py file. So, I wanted to know if there was a simple way to make an equivalent .py for them so one .py shows all the changes

Mohamed_M gravatar imageMohamed_M (May 30 '4)

However, since no one answered then it seems that there are no quick ways to do such a change

Mohamed_M gravatar imageMohamed_M (Jun 5 '4)

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

1 follower

Stats

Asked: May 22 '4

Seen: 1,321 times

Last updated: May 23 '24