Pulse: fix wrong template_dt var in trace_upsampler

This commit is contained in:
Eric Teunis de Boone 2023-04-26 18:27:55 +02:00
parent 59feab014e
commit 22d96c99bd

View file

@ -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