Ask Your Question

Revision history [back]

click to hide/show revision 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()))