From 190937bd2f5660ae8db71456ddbf5de22e9bc608 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 29 Sep 2019 08:27:31 +0200 Subject: carpalx: Add model by Salvo et al. --- lulua/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lulua/plot.py') 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) -- cgit v1.2.3