Ask Your Question

zeeegis's profile - activity

2015-06-09 14:12:29 -0500 received badge  Taxonomist
2013-03-19 18:55:21 -0500 received badge  Famous Question (source)
2013-03-04 11:37:08 -0500 received badge  Famous Question (source)
2013-03-04 11:37:08 -0500 received badge  Notable Question (source)
2012-12-24 00:57:24 -0500 received badge  Famous Question (source)
2012-12-18 03:39:30 -0500 received badge  Notable Question (source)
2012-12-17 19:10:33 -0500 received badge  Popular Question (source)
2012-12-14 03:40:15 -0500 asked a question Get buses numbers when calling tree function

When i call psspy function tree it returns how many buses are in current islands. I also want those buses numbers. How can i do that?

Only solution i can find is to redirect progress output to file and parse those numbers from it.

So is there any more simple way to do this using psspy API.

2012-12-14 03:07:18 -0500 received badge  Notable Question (source)
2012-12-13 04:49:39 -0500 received badge  Nice Question (source)
2012-12-11 19:06:58 -0500 received badge  Popular Question (source)
2012-12-11 04:22:21 -0500 received badge  Popular Question (source)
2012-12-11 02:10:09 -0500 received badge  Supporter (source)
2012-12-10 05:09:23 -0500 received badge  Editor (source)
2012-12-10 05:08:10 -0500 asked a question Python threads in PSSE

I tried to implement wxPython aplication with additional thread for calculations and update wxPython progress dialog within that thread. But psse crashes all the time.

So after that i tried to run really simple multithread python script in psse and it also caused psse crash. There is simple multithread psse script

import threading
import time

class TestThread(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)

    def run(self):
        for i in range(0, 60, 3):
            print "T2: ", i
            time.sleep(3)

TestThread().start()
for i in range(0, 60, 2):
    print "T1: ", i
    time.sleep(1)

So my question is does psse allow to use threads in python script?

2012-12-07 13:42:11 -0500 received badge  Nice Question (source)
2012-12-07 02:28:07 -0500 received badge  Student (source)
2012-12-06 08:48:11 -0500 received badge  Scholar (source)
2012-12-06 05:51:47 -0500 asked a question PSSE custom output device with python

How can i make PSSE write its output to file instead of console in python?

Thanks in advance.