Fixed bugs with progress file close

This commit is contained in:
Trung Nguyen
2024-07-24 23:50:18 -05:00
parent f254af2bab
commit eb5f45dfe7

View File

@ -375,6 +375,7 @@ def iterate(lmp_binary, input_folder, input_list, config, results, progress_file
msg = f"COMPLETED: {input} marked as completed in the progress file {progress_file}"
logger.info(msg)
print(msg)
progress.write(msg)
progress.close()
test_id = test_id + 1
continue
@ -451,6 +452,7 @@ def iterate(lmp_binary, input_folder, input_list, config, results, progress_file
progress.write(f"{input}: {{ folder: {input_folder}, status: skipped, unsupported log file format}}\n")
progress.close()
test_id = test_id + 1
continue
else:
logger.info(f" Cannot find a reference log file for {input_test}.")
# try to read in the thermo yaml output from the working directory