Commit 8e86231c authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Improve hide noise

parent 7b4d4b76
...@@ -198,8 +198,8 @@ class Paf: ...@@ -198,8 +198,8 @@ class Paf:
self.error = "PAF file does not exist!" self.error = "PAF file does not exist!"
return False return False
if not noise: if not noise and nb_lines > 1000:
counts, bins, bars = plt.hist(lines_lens, bins=1000) counts, bins, bars = plt.hist(lines_lens, bins=nb_lines//10)
counts = list(counts) counts = list(counts)
max_value = max(counts) max_value = max(counts)
max_index = counts.index(max_value) max_index = counts.index(max_value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment