-
-
Save Johny-Leo/32edac42396cb1f34e5b0d55f7de19b7 to your computer and use it in GitHub Desktop.
Lumerical FDTD - Script to run all .fsp files in directory to job queue and run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files = splitstring(dir,endl); | |
for(i=1:length(files)) { | |
if (findstring(files{i},"fsp") != -1) { | |
if (fileexists(files{i})) { | |
?files{i}; # displays the filename to confirm | |
load(files{i}); | |
addjob(files{i}); | |
# alternatively, this code can also be used to run | |
# a script on all the fsp files in the directory. | |
# just change the line above to do something else | |
} | |
} | |
} | |
runjobs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment