0

.raw to .py (or .idv) conversion

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)

Mohamed_M's avatar
91
Mohamed_M
asked 2024-05-22 17:03:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Tassie Dave's avatar
111
Tassie Dave
answered 2024-05-23 23:09:56 -0500
edit flag offensive 0 remove flag delete 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's avatar Mohamed_M (2024-05-30 17:10:50 -0500) edit

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

Mohamed_M's avatar Mohamed_M (2024-06-05 16:41:05 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer