Ask Your Question

.raw to .py (or .idv) conversion

asked 2024-05-22 17:03:41 -0500

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)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2024-05-23 23:09:56 -0500

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.

edit flag offensive delete link more


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 ( 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 gravatar imageMohamed_M ( 2024-06-05 16:41:05 -0500 )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

1 follower


Asked: 2024-05-22 17:03:41 -0500

Seen: 881 times

Last updated: May 23