lbl-srg / GenOpt

GenOpt - Generic Optimization program
http://simulationresearch.lbl.gov/GO
20 stars 14 forks source link

Close log file reader #8

Closed nfette closed 7 years ago

nfette commented 7 years ago

Failing to close the log file reader while checking for errors leaves the file open until garbage collection. Then, Optimizer._copyRunFiles() does not work for log files. This fixes that as long as no io exceptions occur during error check.

mwetter commented 7 years ago

@nfette Thanks for the pull request. All tests work fine.