Skip to content

Commit

Permalink
Merge 545032e into e2a5f57
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhertenstein committed Mar 27, 2020
2 parents e2a5f57 + 545032e commit 321a0a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/fathom_web/utils.py
Expand Up @@ -5,7 +5,6 @@
from random import sample
from unicodedata import east_asian_width

from click import style
from more_itertools import pairwise
from numpy import array, histogram
from sklearn.preprocessing import minmax_scale
Expand Down Expand Up @@ -69,9 +68,9 @@ def mini_histogram(data):
counts, _ = histogram(data_array, bins=10)
indices = minmax_scale(counts, feature_range=(0, 8)).round()
chart = ''.join(chars[int(i)] for i in indices)
return '{min} {chart} {max}'.format(min=data_array.min(),
chart=style(chart, bg='white'),
max=data_array.max())
return '{min} |{chart}| {max}'.format(min=data_array.min(),
chart=chart,
max=data_array.max())


def speed_readout(pages):
Expand Down

0 comments on commit 321a0a3

Please sign in to comment.