Skip to content

Commit

Permalink
fix(mi): debug logging for loci load
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 21, 2024
1 parent 5d4b580 commit c45afa3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion strkit/mi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(
self._loci_file: Optional[str] = loci_file
self._loci_dict: LociDictOfDict = build_loci_dict_of_dict_from_file(loci_file)
if self._loci_file is not None:
self._logger.debug("Built loci dict of size %d", len(self._loci_dict))
self._logger.debug("Built loci dict of size %d", sum(len(loc) for loc in self._loci_dict.values()))

self._exclude_file: Optional[str] = exclude_file
self._exclude_dict: LociDictOfList = build_loci_dict_of_list_from_file(exclude_file)
Expand Down
2 changes: 0 additions & 2 deletions strkit/mi/intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ def build_loci_dict_of_dict_from_file(loci_path: Optional[Union[str, Path]]) ->

with open(loci_path, "r") as lf:
for line in filter(_line_filter_fn, map(str.strip, lf)):
print(line)

ls = line.split("\t")

contig, ss, es = ls[:3]
Expand Down

0 comments on commit c45afa3

Please sign in to comment.