Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

click to hide/show revision 2
include's code from @drsieb01's comment

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..)