From f6adf08f6d118234a643761a0009d3c7eb28b0f0 Mon Sep 17 00:00:00 2001 From: Ingmar Jager Date: Mon, 25 Nov 2019 18:23:34 +0100 Subject: [PATCH] update thresholds and add # to comments and add count --- app/analysis.py | 4 ++-- app/views.py | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/analysis.py b/app/analysis.py index 65bc3e4..e7be6d8 100644 --- a/app/analysis.py +++ b/app/analysis.py @@ -9,8 +9,8 @@ TICKS_PER_MM = 75/25.4 * 4 -record_threshold_min_mm = 1 -complete_threshold_mm = 12 +record_threshold_min_mm = 3 +complete_threshold_mm = 13 class KeyPress: diff --git a/app/views.py b/app/views.py index 61c5079..4386c77 100644 --- a/app/views.py +++ b/app/views.py @@ -210,6 +210,7 @@ class TextOutputView(QtWidgets.QWidget): def __init__(self, parent=None): super(TextOutputView, self).__init__() + self.count = 0 self.textView = QtWidgets.QTextEdit() self.textView.setReadOnly(True) @@ -250,6 +251,7 @@ def quit(self): logger.close_session(self.logHandle) def new_log_session(self, logdir: str): + self.count = 0 if self.logHandle: logger.close_session(self.logHandle) self.logHandle = None @@ -259,7 +261,8 @@ def new_log_session(self, logdir: str): @QtCore.Slot(KeyPress) def new_results(self, k: KeyPress): # self.addText(k.serialize()) - self.addText(k.summary()) + self.count += 1 + self.addText('# ' + str(self.count) + '\n' + k.summary()) @QtCore.Slot(str) def addText(self, text: str): @@ -268,7 +271,7 @@ def addText(self, text: str): @QtCore.Slot() def addComment(self): - self.addText(self.input.text()) + self.addText('# ' + self.input.text()) @QtCore.Slot() def clear(self):