Skip to content

Commit

Permalink
feat: add logging to benchmark_against_standard for better insights
Browse files Browse the repository at this point in the history
Add logging capabilities to the `benchmark_against_standard` function to
provide insights into the ongoing execution process, especially helpful
for this time-consuming operation.
  • Loading branch information
clnsmth authored Dec 20, 2024
1 parent 8fd9962 commit 13b2eb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spinneret/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 13b2eb6

Please sign in to comment.