Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
update thresholds and add # to comments and add count
Browse files Browse the repository at this point in the history
  • Loading branch information
ijager committed Nov 25, 2019
1 parent b892bcb commit f6adf08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
7 changes: 5 additions & 2 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit f6adf08

Please sign in to comment.