First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
I have used this approach:
tmpstdout = sys.stdout
HideProgress=True
#WRITE TO 'NOWHERE' FILE (USED FOR HIDEPROGRESS) ----
class DummyFile(object):
def write(self, x): pass
import redirect
redirect.psse2py()
if HideProgress==True: sys.stdout = DummyFile()
psspy.psseinit(buses=80000) #Any API that has Reporting or Progress
sys.stdout=tmpstdout
2 | No.2 Revision |
I have used this approach:
tmpstdout = sys.stdout
HideProgress=True
#WRITE TO 'NOWHERE' FILE (USED FOR HIDEPROGRESS) ----
class DummyFile(object):
def write(self, x): pass
import redirect
redirect.psse2py()
if HideProgress==True: sys.stdout = DummyFile()
psspy.psseinit(buses=80000) #Any API that has Reporting or Progress
sys.stdout=tmpstdout
3 | No.3 Revision |
I have used this approach:
tmpstdout = sys.stdout
HideProgress=True
#WRITE TO 'NOWHERE' FILE (USED FOR HIDEPROGRESS) ----
class DummyFile(object):
def write(self, x): pass
import redirect
redirect.psse2py()
if HideProgress==True: sys.stdout = DummyFile()
psspy.psseinit(buses=80000) #Any API that has Reporting or Progress
sys.stdout=tmpstdout