diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-09-29 08:27:31 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-09-29 08:27:31 +0200 |
commit | 190937bd2f5660ae8db71456ddbf5de22e9bc608 (patch) | |
tree | 67793f2dc5c8cca3bb2b2fcd0abd2503440b2c92 /lulua/plot.py | |
parent | bc0bd6a2f4a10516e89d3af1ea38e8203219fdff (diff) | |
download | lulua-190937bd2f5660ae8db71456ddbf5de22e9bc608.tar.gz lulua-190937bd2f5660ae8db71456ddbf5de22e9bc608.tar.bz2 lulua-190937bd2f5660ae8db71456ddbf5de22e9bc608.zip |
carpalx: Add model by Salvo et al.
Diffstat (limited to 'lulua/plot.py')
-rw-r--r-- | lulua/plot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lulua/plot.py b/lulua/plot.py index 453c6eb..14b9732 100644 --- a/lulua/plot.py +++ b/lulua/plot.py @@ -28,7 +28,7 @@ from .layout import * from .keyboard import defaultKeyboards from .util import limit, displayText from .writer import Writer -from .carpalx import Carpalx, model01 +from .carpalx import Carpalx, models def letterfreq (args): """ Map key combinations to their text, bin it and plot sorted distribution """ @@ -124,7 +124,7 @@ def triadfreq (args): # letter-based binning, in case multiple buttons are mapped to the same # letter. - binned = defaultdict (lambda: dict (weight=0, effort=Carpalx (model01, writer), textTriad=None)) + binned = defaultdict (lambda: dict (weight=0, effort=Carpalx (models['mod01'], writer), textTriad=None)) weightSum = 0 for triad, weight in stats['triads'].triads.items (): textTriad = tuple (layout.getText (t) for t in triad) |