diff options
author | QMK Bot <hello@qmk.fm> | 2021-09-27 17:03:42 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-09-27 17:03:42 +0000 |
commit | bca7a99e7aad2ff0a4aaed2d0e755e2d6bd7cee6 (patch) | |
tree | 764b035dc6beebd5ced279f02d10b5b0e0720894 /layouts/community/ergodox/algernon/tools/log-to-heatmap.py | |
parent | a311514f43de7cf7bde758a691419a95367cebe2 (diff) | |
parent | fce9cb933845bf0b74d322eba02de3b76daaeb84 (diff) | |
download | qmk_firmware-bca7a99e7aad2ff0a4aaed2d0e755e2d6bd7cee6.tar.gz qmk_firmware-bca7a99e7aad2ff0a4aaed2d0e755e2d6bd7cee6.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'layouts/community/ergodox/algernon/tools/log-to-heatmap.py')
-rwxr-xr-x | layouts/community/ergodox/algernon/tools/log-to-heatmap.py | 4 |
1 files changed, 1 insertions, 3 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+") |