Skip to content

Commit

Permalink
chore(mi): log when contig is finished processing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 21, 2024
1 parent ba1ffbd commit 9fe1aaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions strkit/mi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ def calculate(self, included_contigs: set) -> Optional[MIResult]:
n_total += len(contig_result)
output_loci.extend(nm)

self._logger.info(
"Finished processing contig %s. Current value: %.2f, ±1: %.2f",
contig_result.contig, res / n_total * 100, res_pm1 / n_total * 100,
)

if n_total == 0:
self._logger.warning("No common loci found")
return None
Expand Down

0 comments on commit 9fe1aaa

Please sign in to comment.