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

correction index

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