summaryrefslogtreecommitdiff
path: root/lib/lennart/DataProcessor.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-22 15:05:09 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-22 15:05:09 +0200
commitb7e25c6ca7746e86ef201b9be7ecec57bf5b2d2a (patch)
treed1f9ab118643e3aa8eddb1f846d5a89120177b29 /lib/lennart/DataProcessor.py
parent9f85fc2f2678c491d1ae8d42995fae0fb931f1fe (diff)
Improve sync=la timing restoration. There's still something fishy though...
Diffstat (limited to 'lib/lennart/DataProcessor.py')
-rw-r--r--lib/lennart/DataProcessor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py
index 8d762e7..90cc54d 100644
--- a/lib/lennart/DataProcessor.py
+++ b/lib/lennart/DataProcessor.py
@@ -228,9 +228,10 @@ class DataProcessor:
def getDataText(x):
# print(x)
+ dl = len(annotateData)
for i, xt in enumerate(self.modified_timestamps):
- if xt > x:
- return "Value: %s" % annotateData[i - 5]
+ if xt > x and i >= 4 and i - 5 < dl:
+ return f"SoT: {annotateData[i - 5]}"
def update_annot(x, y, name):
annot.xy = (x, y)