From e2ac58c4fe454aa6720cb71e630194f1596e772f Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Thu, 10 Mar 2022 14:58:33 +0100 Subject: [PATCH] TravelSignal fix spatial offset --- simulations/lib/TravelSignal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulations/lib/TravelSignal.py b/simulations/lib/TravelSignal.py index 70d2863..bd9f90b 100644 --- a/simulations/lib/TravelSignal.py +++ b/simulations/lib/TravelSignal.py @@ -116,7 +116,7 @@ class TravelSignal: temporal_time_offset = t_f - t_0 # total offset - total_time_offset = spatial_time_offset + temporal_time_offset + total_time_offset = temporal_time_offset - spatial_time_offset n_offset = (total_time_offset * self.sample_rate ) # periodic signal