From 88cb3fead0c2faa60f1891f86a1edbd2f6a705b2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 19 Jan 2021 10:54:42 +0100 Subject: drift compensation: use PILT min_dist=1 --- lib/lennart/DataProcessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py index 4180bce..e45fba3 100644 --- a/lib/lennart/DataProcessor.py +++ b/lib/lennart/DataProcessor.py @@ -221,7 +221,7 @@ class DataProcessor: # "rbf" und "l2" scheinen ähnlich gut zu funktionieren, l2 ist schneller. # PELT does not find changepoints for transitions which span just four or five data points (i.e., transitions shorter than ~2ms). # Workaround: Double the data rate passed to PELT by interpolation ("stretch=2") - pelt = PELT(with_multiprocessing=False, stretch=2) + pelt = PELT(with_multiprocessing=False, stretch=2, min_dist=1) expected_transition_start_timestamps = sync_timestamps[::2] transition_start_candidate_weights = list() drift = 0 -- cgit v1.2.3