Skip to content

Commit

Permalink
Merge pull request #1 from AnnaKelmanson/main
Browse files Browse the repository at this point in the history
Fixed issue with encode_many
  • Loading branch information
markusorsi authored Oct 17, 2024
2 parents ab60c9e + cdf9622 commit dab1e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapchiral/mapchiral.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def encode_many(mols, max_radius:int=2, n_permutations:int=2048, mapping:bool=Fa
if mapping:
return get_fingerprints_with_mapping(mols, max_radius, n_permutations, n_cpus, seed)
else:
return get_fingerprints(mols, max_radius, n_cpus, n_permutations)
return get_fingerprints(mols, max_radius, n_permutations, n_cpus)


def jaccard_similarity(fingerprint_1:np.array=None, fingerprint_2:np.array=None):
Expand Down Expand Up @@ -454,4 +454,4 @@ def jaccard_similarity(fingerprint_1:np.array=None, fingerprint_2:np.array=None)
similarity = jaccard_similarity(fingerprint_1, fingerprint_2)
print(similarity)
"""
return np.count_nonzero(fingerprint_1 == fingerprint_2) / fingerprint_1.shape[0]
return np.count_nonzero(fingerprint_1 == fingerprint_2) / fingerprint_1.shape[0]

0 comments on commit dab1e4a

Please sign in to comment.