summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart <lekaiser@uos.de>2020-08-20 13:39:15 +0200
committerLennart <lekaiser@uos.de>2020-08-20 13:39:15 +0200
commitae154071f9da8105bfa0ca9c20948d471d38e8cd (patch)
tree1ef09bf764f71514ea616458a6411974da5fb273
parent1f2f18c5b3ecb37ec8b2e4e9e57749d11ad0bba1 (diff)
Added state duration
-rw-r--r--lib/loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/loader.py b/lib/loader.py
index bd6a49d..d14680e 100644
--- a/lib/loader.py
+++ b/lib/loader.py
@@ -1678,11 +1678,11 @@ class EnergyTraceWithLogicAnalyzer:
for trace_number, trace in enumerate(traces):
for state_or_transition in trace["trace"]:
names.append(state_or_transition["name"])
- print(names[:15])
+ #print(names[:15])
dp = DataProcessor(sync_data=self.sync_data, energy_data=self.energy_data)
dp.run()
energy_trace_new = list()
- energy_trace_new.extend(dp.getStatesdfatool())
+ energy_trace_new.extend(dp.getStatesdfatool(state_sleep=self.state_duration))
#dp.plot()
#dp.plot(names)
energy_trace_new = energy_trace_new[4:]