First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
The code works fine.
replace "sys.exit(0)" with "break" to exit the inner loop when the case or snp file is bad.
Potential improvements:
- separate data input from code. Minimize hard-coded data input. Even the simulation time could become an input.
- snp filenames do not have to match same sequence as cnv filenames. Better, read a pair (cnv, snp) of filenames per run.
- for over tens of runs, it pays to use parallel processing (one run per CPU)