Skip to content
Snippets Groups Projects
Commit ad6e976d authored by Julianne's avatar Julianne
Browse files

correction index

parent 41decfab
Branches
No related tags found
No related merge requests found
......@@ -167,7 +167,8 @@ def create_hash_table(set_kmer, n):
for kmer in set_kmer:
h = abs(hash(kmer))
rang = get_hash_mphf(mphf, kmer)
tableau[rang] = kmer
if 0 <= rang <n :
tableau[rang] = kmer
# retourner le tableau et la mphf
return tableau, mphf
......@@ -209,7 +210,7 @@ def compare_taille(n_max, fichier_sortie):
plt.close()
# dé-commenter quand vous êtes prêts, expliquer les résultats
#compare_taille(10000,"mphf.png")
compare_taille(10000,"mphf.png")
import doctest
doctest.testmod()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment