diff options
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+") |
