diff --git a/src/python/tests/test_fastmultigather.py b/src/python/tests/test_fastmultigather.py index f31e6b03..69eab9cf 100644 --- a/src/python/tests/test_fastmultigather.py +++ b/src/python/tests/test_fastmultigather.py @@ -1179,7 +1179,7 @@ def test_simple_protein(runtmp): "-k", "19", "-o", - gather_out + gather_out, ) all_df = pandas.read_csv(gather_out) @@ -1187,7 +1187,7 @@ def test_simple_protein(runtmp): p_output = runtmp.output(os.path.join(qsig + ".prefetch.csv")) assert os.path.exists(p_output) - df = all_df[all_df['match_name'] == qsig] + df = all_df[all_df["match_name"] == qsig] assert len(df) == 1 keys = set(df.keys()) @@ -1224,7 +1224,7 @@ def test_simple_dayhoff(runtmp): "-k", "19", "-o", - gather_out + gather_out, ) all_df = pandas.read_csv(gather_out) @@ -1232,7 +1232,7 @@ def test_simple_dayhoff(runtmp): p_output = runtmp.output(os.path.join(qsig + ".prefetch.csv")) assert os.path.exists(p_output) - df = all_df[all_df['match_name'] == qsig] + df = all_df[all_df["match_name"] == qsig] assert len(df) == 1 keys = set(df.keys()) @@ -1269,7 +1269,7 @@ def test_simple_hp(runtmp): "-k", "19", "-o", - gather_out + gather_out, ) all_df = pandas.read_csv(gather_out) @@ -1277,7 +1277,7 @@ def test_simple_hp(runtmp): p_output = runtmp.output(os.path.join(qsig + ".prefetch.csv")) assert os.path.exists(p_output) - df = all_df[all_df['match_name'] == qsig] + df = all_df[all_df["match_name"] == qsig] assert len(df) == 1 keys = set(df.keys()) assert { @@ -1949,7 +1949,7 @@ def test_create_empty_prefetch_results(runtmp): "--create-empty-results", "-o", gather_out, - in_directory=runtmp.output("") + in_directory=runtmp.output(""), ) print(os.listdir(runtmp.output(""))) diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 812a91af..2ee44c84 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -82,7 +82,7 @@ pub fn prefetch( let searchsig = &result.minhash; let overlap = searchsig.count_common(query_mh, false); if let Ok(overlap) = overlap { - if overlap >0 && overlap >= threshold_hashes { + if overlap > 0 && overlap >= threshold_hashes { let result = PrefetchResult { overlap, ..result }; mm = Some(result); }