First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
the function test1() already uses a list of out files!!. To make it more generic:
1: add to the top of the code
import glob
2: knowing the folder name where the out files are stored, in test1() replace the outlst definition with
outlist = glob.glob('examples\*.out') #or full path of folder name. It collects all *.out file into a list