| 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
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.