mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-12-22 11:33:32 +01:00
Pulse: fix wrong template_dt var in trace_upsampler
This commit is contained in:
parent
59feab014e
commit
22d96c99bd
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ def my_correlation(in1, template, lags=None):
|
||||||
return corrs, (in1, template, lags)
|
return corrs, (in1, template, lags)
|
||||||
|
|
||||||
def trace_upsampler(trace, template_t, trace_t):
|
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]
|
trace_dt = trace_t[1] - trace_t[0]
|
||||||
|
|
||||||
upsample_factor = trace_dt/template_dt
|
upsample_factor = trace_dt/template_dt
|
||||||
|
|
Loading…
Reference in a new issue