diff options
Diffstat (limited to 'layouts/community/ergodox')
3 files changed, 1 insertions, 9 deletions
diff --git a/layouts/community/ergodox/algernon/tools/log-to-heatmap.py b/layouts/community/ergodox/algernon/tools/log-to-heatmap.py index e927e0e39..5f52d9932 100755 --- a/layouts/community/ergodox/algernon/tools/log-to-heatmap.py +++ b/layouts/community/ergodox/algernon/tools/log-to-heatmap.py | |||
@@ -8,7 +8,6 @@ import time | |||
8 | 8 | ||
9 | from math import floor | 9 | from math import floor |
10 | from os.path import dirname | 10 | from os.path import dirname |
11 | from subprocess import Popen, PIPE, STDOUT | ||
12 | from blessings import Terminal | 11 | from blessings import Terminal |
13 | 12 | ||
14 | class Heatmap(object): | 13 | class Heatmap(object): |
@@ -122,7 +121,6 @@ class Heatmap(object): | |||
122 | 121 | ||
123 | for (c, r) in self.log: | 122 | for (c, r) in self.log: |
124 | coords = self.coord(c, r) | 123 | coords = self.coord(c, r) |
125 | b, n = coords | ||
126 | cap = self.max_cnt | 124 | cap = self.max_cnt |
127 | if cap == 0: | 125 | if cap == 0: |
128 | cap = 1 | 126 | cap = 1 |
@@ -302,7 +300,7 @@ def main(opts): | |||
302 | break | 300 | break |
303 | if not process_line(line, heatmaps, opts): | 301 | if not process_line(line, heatmaps, opts): |
304 | continue | 302 | continue |
305 | except: | 303 | except Exception: |
306 | pass | 304 | pass |
307 | 305 | ||
308 | stamped_log = open ("%s/stamped-log" % (out_dir), "a+") | 306 | stamped_log = open ("%s/stamped-log" % (out_dir), "a+") |
diff --git a/layouts/community/ergodox/algernon/tools/text-to-log.py b/layouts/community/ergodox/algernon/tools/text-to-log.py index f080c32cd..ba60a2e28 100755 --- a/layouts/community/ergodox/algernon/tools/text-to-log.py +++ b/layouts/community/ergodox/algernon/tools/text-to-log.py | |||
@@ -1,6 +1,5 @@ | |||
1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
2 | 2 | ||
3 | import os | ||
4 | import sys | 3 | import sys |
5 | 4 | ||
6 | charmap = { | 5 | charmap = { |
diff --git a/layouts/community/ergodox/german-manuneo/compile_keymap.py b/layouts/community/ergodox/german-manuneo/compile_keymap.py index 9ad5c88ec..df5d42984 100644 --- a/layouts/community/ergodox/german-manuneo/compile_keymap.py +++ b/layouts/community/ergodox/german-manuneo/compile_keymap.py | |||
@@ -584,11 +584,6 @@ def unicode_macro_cases(config): | |||
584 | for macro_id, uc_hex in config['unicode_macros'].items(): | 584 | for macro_id, uc_hex in config['unicode_macros'].items(): |
585 | hi = int(uc_hex, 16) >> 8 | 585 | hi = int(uc_hex, 16) >> 8 |
586 | lo = int(uc_hex, 16) & 0xFF | 586 | lo = int(uc_hex, 16) & 0xFF |
587 | unimacro_keys = ", ".join( | ||
588 | "T({})".format( | ||
589 | "KP_" + digit if digit.isdigit() else digit | ||
590 | ) for digit in uc_hex | ||
591 | ) | ||
592 | yield UNICODE_MACRO_TEMPLATE.format( | 587 | yield UNICODE_MACRO_TEMPLATE.format( |
593 | macro_id=macro_id, hi=hi, lo=lo | 588 | macro_id=macro_id, hi=hi, lo=lo |
594 | ) | 589 | ) |