Skip to content

Commit 3607bf5

Browse files
committed
Extended test_calculate from fingerprints
1 parent aff2fd0 commit 3607bf5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_benchmarking/test_top_k_tanimoto_scores.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ def test_methods_top_k_tanimoto_scores():
2020

2121

2222
def test_calculate_from_fingerprints():
23-
fingerprints = make_test_fingerprints(20)
24-
TopKTanimotoScores.calculate_from_fingerprints(fingerprints, fingerprints, 10)
23+
fingerprints = make_test_fingerprints(nbits=5, nr_of_inchikeys=5)
24+
top_scores = TopKTanimotoScores.calculate_from_fingerprints(fingerprints, fingerprints, 2)
25+
assert top_scores.select_top_k_inchikeys_and_scores("AAAAAAAAAAAAAE") == {
26+
"AAAAAAAAAAAAAD": 0.75,
27+
"AAAAAAAAAAAAAE": 1.0,
28+
}

0 commit comments

Comments
 (0)