From 9284ed037c001d8aa150adbeac533929b6e03a66 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 22 Mar 2021 16:47:21 +0100 Subject: EnergyTraceWithLogicAnalyzer: Use ExternalTimerSync as well DataProcessor is now deprecated and no longer in use --- lib/lennart/DataProcessor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/lennart') diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py index 6df813e..c211beb 100644 --- a/lib/lennart/DataProcessor.py +++ b/lib/lennart/DataProcessor.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 + +# XXX deprecated and unused import numpy as np import logging import os @@ -49,7 +51,7 @@ class DataProcessor: # Remove bogus data before / after the measurement - time_stamp_data = self.sync_data.timestamps + time_stamp_data = self.sync_data for x in range(1, len(time_stamp_data)): if time_stamp_data[x] - time_stamp_data[x - 1] > 1.3: time_stamp_data = time_stamp_data[x:] -- cgit v1.2.3