First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
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()))