From 22d96c99bd164ae3cba4f929fa5260b833b4606d Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 26 Apr 2023 18:27:55 +0200 Subject: [PATCH] Pulse: fix wrong template_dt var in trace_upsampler --- simulations/11_pulsed_timing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulations/11_pulsed_timing.py b/simulations/11_pulsed_timing.py index 9da6cb4..7c31b82 100755 --- a/simulations/11_pulsed_timing.py +++ b/simulations/11_pulsed_timing.py @@ -111,7 +111,7 @@ def my_correlation(in1, template, lags=None): return corrs, (in1, template, lags) def trace_upsampler(trace, template_t, trace_t): - template_dt = template.t[1] - template.t[0] + template_dt = template_t[1] - template_t[0] trace_dt = trace_t[1] - trace_t[0] upsample_factor = trace_dt/template_dt