Ask Your Question
1

PSSE output not always going to directed output file

asked 2022-02-07 09:43:51 -0600

tolemanator gravatar image

I am writing a script to batch build models and I have the solve log info (via progress_output) going to a text file output instead of the python terminal. Sometimes, without a reason I can determine, the output shows up in the terminal but then other times it gets redirected as intended. Any ideas?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2022-02-11 03:33:51 -0600

Anil Kumar gravatar image

Sir, here as far as i understand the issue you may use the following commands depending on the requirement

1) if you want report to send to standard psse gui you may use

psspy.report_output(1)

2) if you want it to directed to specific file in a drive you may change to

psspy.report_output(2,"file name with complete address",0)

i believe your problem may be solved with this

edit flag offensive delete link more

Comments

1

I think I figured out the problem and it was not initializing the output file before starting to write to it, and sometimes it wouldn't find the file if it wasn't created quickly enough and then would default to the terminal. thanks for your help!

tolemanator gravatar imagetolemanator ( 2022-02-11 13:47:50 -0600 )edit
0

answered 2022-02-10 18:26:26 -0600

bikiran1991 gravatar image

You may need to have unique filenames for the output file. The output gets redirected back to the terminal if it cannot write to the text file specified. This can happen, for example, if multiple processes are trying to access the same file.

edit flag offensive delete link more

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: 2022-02-07 09:43:51 -0600

Seen: 571 times

Last updated: Feb 11 '22