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!
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()))
thanks!!!!
Asked: Nov 16 '17
Seen: 656 times
Last updated: Nov 17 '17