Skip to content

Commit

Permalink
chore(mi): more detailed dict-building logs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 12, 2024
1 parent cdcd5b8 commit 6dffbb2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions strkit/mi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,20 @@ def __init__(
self._loci_dict: LociDictOfDict = build_loci_dict_of_dict_from_file(loci_file)
self._loci_dict_cache_key: str = str(uuid.uuid4())
if self._loci_file is not None:
self._logger.debug("Built loci dict of size %d", sum(len(loc) for loc in self._loci_dict.values()))
self._logger.debug(
"Built loci dict of size %d with contigs %s",
sum(len(loc) for loc in self._loci_dict.values()),
tuple(self._loci_dict.keys()),
)

self._exclude_file: Optional[str] = exclude_file
self._exclude_dict: LociDictOfList = build_loci_dict_of_list_from_file(exclude_file)
if self._exclude_file is not None:
self._logger.debug("Built exclude dict of size %d", len(self._loci_dict))
self._logger.debug(
"Built exclude dict of size %d with contigs %s",
len(self._loci_dict),
tuple(self._exclude_dict.keys()),
)

self._decimal_threshold: float = 0.5
self._widen: float = widen
Expand Down

0 comments on commit 6dffbb2

Please sign in to comment.