Ask Your Question

drsieb01's profile - activity

2013-08-12 19:05:50 -0500 received badge  Famous Question (source)
2013-08-11 21:27:40 -0500 received badge  Nice Question (source)
2013-08-09 10:32:13 -0500 received badge  Notable Question (source)
2013-08-08 20:46:17 -0500 received badge  Student (source)
2013-08-05 12:26:34 -0500 received badge  Popular Question (source)
2013-08-02 07:58:51 -0500 commented question Error checking while running faults in a loop

Example: for fault in os.listdir('faultfile'): psspy.runrspnsfile(...file path..) I'm just unsure if handling the exception with a try/except would handle this case since it is waiting on a return from another function.

2013-08-02 07:55:28 -0500 commented question Error checking while running faults in a loop

Sorry, I forgot to say that I am running dynamics. By "hung up" I mean that some error in the fault file has caused pss/e to pause and wait for some input, basically anything that would not return from the psspy.runrspnsfile command.

2013-08-01 15:24:04 -0500 asked a question Error checking while running faults in a loop

I have a script that uses a for loop to iterate through a list of faults on a case. I was wondering if there was a way to check if pss/e is getting hung up on the fault it is running and move on to the next iteration of the loop?

(edit to include code from @drsieb01 's comment)

Example:

for fault in os.listdir('faultfile'):
    psspy.runrspnsfile(...file path..)