Ask Your Question
0

Check if case solve or not after using psspy.fdns() routine.

asked 2017-11-16 16:10:14 -0500

Power_System_Engineer gravatar image

Is there a way to check if the case solve or not and output that status to a text file?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-11-17 06:15:10 -0500

perolofl gravatar image

The following script goes through all cases in working directory and writes the error codes from API FDNS and SOLVED to a text file.

import glob
with open('cases_solved.txt','w') as f:  
    for file in glob.glob('*.sav'):
        psspy.case(file)
        f.write('%s \t%s \t%s\n' %(file,psspy.fdns(),psspy.solved()))
edit flag offensive delete link more

Comments

thanks!!!!

Power_System_Engineer gravatar imagePower_System_Engineer ( 2017-11-17 09:36:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2017-11-16 16:10:14 -0500

Seen: 571 times

Last updated: Nov 17 '17