1

PSSE output not always going to directed output file

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?

tolemanator's avatar
11
tolemanator
asked 2022-02-07 09:43:51 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

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.

bikiran1991's avatar
47
bikiran1991
answered 2022-02-10 18:26:26 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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

Anil Kumar's avatar
1
Anil Kumar
answered 2022-02-11 03:33:51 -0500
edit flag offensive 0 remove flag delete link

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's avatar tolemanator (2022-02-11 13:47:50 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer