0

Supress only PSSE output

I feel like this should be an easy one, but everything I am throwing at python is failing me. I am trying to run a program within PSSE, but I would like all output to be supressed except for my python print() commands. Is this possible without creating my own print wrapper function?

EBahr's avatar
420
EBahr
asked 2020-01-13 11:56:31 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

0

Search the forum for "Silencing PSSE STDOUT"

jconto's avatar
2.9k
jconto
answered 2020-08-26 13:10:22 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Just adding more to what was said previously, I have been looking into this, and just wrapped certain PSSE psspy commands with the syntax to silence the PSSE output and then turn it back on, leaving everything else (python print statement etc) normal to output to the terminal our the output bar.

#turn off PSSE output
psspy.progress_output(6,'',[])
#run a couple of loads flows
psspy.fdns([0,0,0,1,1,0,0,0])
psspy.fdns([0,0,0,1,1,0,0,0])
#turn normal output back on
psspy.progress_output(1,'',[])

So far this is the only instance I have used it, but outputs when changing load values via script I plan on also wrapping.

georgc's avatar
21
georgc
answered 2020-08-26 10:12:00 -0500, updated 2020-08-26 10:12:30 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

Look into the following psspy commands in the API book:

psspy.report_output()
psspy.progress_output() 
psspy.alert_output() 
psspy.prompt_output()

Besides ignoring the output, you can also redirect it to a log file for further inspection later on.

bikiran1991's avatar
47
bikiran1991
answered 2020-01-29 21:51:18 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer