From 3155b6f361d2d7240597e9f8197bfaa2016eda35 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Mon, 29 Jul 2024 09:41:13 -0500 Subject: [PATCH] Avoided rewriting progress with completed runs, improved parsing log.lammps to yaml --- tools/regression-tests/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/regression-tests/run_tests.py b/tools/regression-tests/run_tests.py index 0da904c61c..b8456bb133 100644 --- a/tools/regression-tests/run_tests.py +++ b/tools/regression-tests/run_tests.py @@ -182,7 +182,7 @@ def iterate(lmp_binary, input_folder, input_list, config, results, progress_file msg = " + " + input + f" ({test_id+1}/{num_tests}): marked as completed in the progress file {progress_file}" logger.info(msg) print(msg) - progress.write(msg) + # No need to write to progress again that the run is completed progress.close() num_skipped = num_skipped + 1 test_id = test_id + 1 @@ -541,7 +541,7 @@ def extract_data_to_yaml(inputFileName): docs = "" num_thermo_cols = 0 for line in lines: - if "Step" in line: + if "Step" in line and line[0] != '#': line.strip() keywords = line.split() num_thermo_cols = len(keywords)