Skip to content

Commit

Permalink
Merge pull request #196 from medema-group/hotfix/cds-warn
Browse files Browse the repository at this point in the history
move CDS warning to debug
  • Loading branch information
nlouwen authored Oct 21, 2024
2 parents 3b7d91b + f51d952 commit 4f9dd28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions big_scape/genbank/cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ def parse(
not correct_translation
and not parent_gbk.source_type == SOURCE_TYPE.MIBIG
):
logging.warning(
logging.debug(
"CDS (%s, %s) from %s:"
" translation provided by antiSMASH and generated by biopython"
" do not match, consider checking if there is something"
" special with this CDS",
" do not match, likely due to fuzzy starts/ends."
" Consider checking if there is something special with this CDS",
nt_start,
nt_stop,
parent_gbk.path,
Expand Down
2 changes: 1 addition & 1 deletion test/genbank/test_cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def test_parse_translation_antismash_larger_mismatch(self):
"GADYGLCRVYRNEPWHFELRPEAIEHGCPPLYADPSHDPXXXX"
]

with self.assertLogs(level=logging.INFO) as cm:
with self.assertLogs(level=logging.DEBUG) as cm:
logging.info("nonsense")
CDS.parse(feature, parent_gbk)

Expand Down

0 comments on commit 4f9dd28

Please sign in to comment.