summaryrefslogtreecommitdiff
path: root/lib/loader.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-23 12:33:59 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-23 12:33:59 +0200
commit0d387ea41e64afbb80a4ec5ac0f49327d07bd6d9 (patch)
treea3ebdd1065746dd381901315036f74473d70d0c4 /lib/loader.py
parent34b1b9466af7501e651cf3664d96e12c8126f116 (diff)
ET+Timer: handle start offset between sync pulse and first trace
looking pretty good now!
Diffstat (limited to 'lib/loader.py')
-rw-r--r--lib/loader.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/loader.py b/lib/loader.py
index 0e46755..649c032 100644
--- a/lib/loader.py
+++ b/lib/loader.py
@@ -1784,19 +1784,16 @@ class EnergyTraceWithTimer(EnergyTraceWithLogicAnalyzer):
# Start "Synchronization pulse"
timestamps = [0, 10, 1e6, 1e6 + 10]
- # 250ms zwischen Ende der LASync und Beginn der Messungen
- # (wegen sleep(250) in der generierten multipass-runLASync-Funktion)
- # TODO die prevcycles der allerersten Transition werden vom Tooling nicht
- # ausgewertet / weitergereicht, genau diese müssten hier hin.
- timestamps.append(timestamps[-1] + 250e3)
+ # The first trace doesn't start immediately, append offset saved by OnboarTimerHarness
+ timestamps.append(timestamps[-1] + traces[0]["start_offset"][offline_index])
for tr in traces:
for t in tr["trace"]:
- # print(t['online_aggregates']['duration'][0])
+ # print(t["online_aggregates"]["duration"][offline_index])
timestamps.append(
timestamps[-1] + t["online_aggregates"]["duration"][offline_index]
)
- print(timestamps)
+ # print(timestamps)
# Stop "Synchronization pulses". The first one has already started.
timestamps.extend(np.array([10, 1e6, 1e6 + 10]) + timestamps[-1])