Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Silencing PSSE STDOUT

PSSE is rather talkative and makes liberal use of STDOUT just to let you know its happy. Does anyone know how to silence PSSE and just make it report important things like errors?

For example just setting up psse with the command:

psspy.psseinit(80000)

Causes PSSE to dump a copyright notice and other info to STDOUT:

 PSSĀ«E Version 32
 Copyright (c) 1976-2012
 Siemens Energy, Inc.,
 Power Technologies International                            (PTI)
 This program is a confidential  unpublished  work  created  and  first
 licensed in 1976.  It is a trade secret which is the property of  PTI

Other common operations like reading a raw file behave in the same way. Now I know I could redirect all STDOUT in Python, but that seems rather drastic. Any ideas?