Ask Your Question
0

Supress only PSSE output

asked 2020-01-13 11:56:31 -0600

EBahr gravatar image

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?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2020-08-26 13:10:22 -0600

jconto gravatar image

Search the forum for "Silencing PSSE STDOUT"

edit flag offensive delete link more
0

answered 2020-08-26 10:12:00 -0600

georgc gravatar image

updated 2020-08-26 10:12:30 -0600

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.

edit flag offensive delete link more
0

answered 2020-01-29 21:51:18 -0600

bikiran1991 gravatar image

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.

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

2 followers

Stats

Asked: 2020-01-13 11:56:31 -0600

Seen: 861 times

Last updated: Aug 26 '20