From cc4144e826597234d99355d454e7b59ae5f364ce Mon Sep 17 00:00:00 2001 From: taylorreiter Date: Wed, 19 May 2021 11:11:51 -0700 Subject: [PATCH] woops -- only break if len(mh) == 0 --- charcoal/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charcoal/utils.py b/charcoal/utils.py index 342bda3..d608983 100644 --- a/charcoal/utils.py +++ b/charcoal/utils.py @@ -154,7 +154,7 @@ def gather_at_rank(mh, lca_db, lin_db, match_rank): counts = Counter() while 1: - if len(query_sig.minhash.get_mins()): + if len(query_sig.minhash.get_mins()) == 0: break results = lca_db.gather(query_sig, threshold_bp=0)