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

Improve hide noise

parent 7b4d4b76
......@@ -198,8 +198,8 @@ class Paf:
self.error = "PAF file does not exist!"
return False
if not noise:
counts, bins, bars = plt.hist(lines_lens, bins=1000)
if not noise and nb_lines > 1000:
counts, bins, bars = plt.hist(lines_lens, bins=nb_lines//10)
counts = list(counts)
max_value = max(counts)
max_index = counts.index(max_value)
Supports Markdown
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