From 13b2eb64bcd5f3b01c9e41767f445897a803970e Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Fri, 20 Dec 2024 11:45:31 -0500 Subject: [PATCH] feat: add logging to `benchmark_against_standard` for better insights Add logging capabilities to the `benchmark_against_standard` function to provide insights into the ongoing execution process, especially helpful for this time-consuming operation. --- src/spinneret/benchmark.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spinneret/benchmark.py b/src/spinneret/benchmark.py index c6e8c15..7930579 100644 --- a/src/spinneret/benchmark.py +++ b/src/spinneret/benchmark.py @@ -94,9 +94,11 @@ def benchmark_against_standard(standard_dir: str, test_dirs: list) -> pd.DataFra if not standard_file.endswith(".tsv"): # we are expecting tsv files continue standard_path = os.path.join(standard_dir, standard_file) + logger.info(f"Benchmarking against standard file: {standard_path}") for test_dir in test_dirs: test_path = os.path.join(test_dir, standard_file) + logger.info(f"Comparing to test file: {test_path}") if not os.path.exists(test_path): # we need a matching test file continue