Check if case solve or not after using psspy.fdns() routine.
Is there a way to check if the case solve or not and output that status to a text file?
add a comment
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Is there a way to check if the case solve or not and output that status to a text file?
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()))
Asked: 2017-11-16 16:10:14 -0500
Seen: 622 times
Last updated: Nov 17 '17