Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jan 6, 2025
1 parent 547484a commit bf9a5b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/python/tests/test_fastmultigather.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,15 +1179,15 @@ def test_simple_protein(runtmp):
"-k",
"19",
"-o",
gather_out
gather_out,
)

all_df = pandas.read_csv(gather_out)
for qsig in sig_names:
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())
Expand Down Expand Up @@ -1224,15 +1224,15 @@ def test_simple_dayhoff(runtmp):
"-k",
"19",
"-o",
gather_out
gather_out,
)

all_df = pandas.read_csv(gather_out)
for qsig in sig_names:
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())
Expand Down Expand Up @@ -1269,15 +1269,15 @@ def test_simple_hp(runtmp):
"-k",
"19",
"-o",
gather_out
gather_out,
)

all_df = pandas.read_csv(gather_out)
for qsig in sig_names:
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 {
Expand Down Expand Up @@ -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("")))
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bf9a5b7

Please sign in to comment.