From 26c0050575307d969385ab2fa8c94463907f65c0 Mon Sep 17 00:00:00 2001 From: ferrari <maxence.ferrari@gmail.com> Date: Fri, 30 Jun 2023 16:49:03 +0200 Subject: [PATCH] Fix boundary of prepare mode --- gsrp_tdoa_hyperres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsrp_tdoa_hyperres.py b/gsrp_tdoa_hyperres.py index 8a67ec2..729225d 100755 --- a/gsrp_tdoa_hyperres.py +++ b/gsrp_tdoa_hyperres.py @@ -81,7 +81,7 @@ def corr(data, pos, w_size, max_tdoa, decimate=1, mode='prepare', hyper=True, ve v2[k] = j dw_size = (w_size // decimate) & ~1 if mode == 'prepare': - slices = slicer(-(cc_size // 2), cc_size // 2, (num_channels - 1), 16) + slices = slicer(-(cc_size // 2), cc_size // 2 + 1, (num_channels - 1), 16) tausf = [] for j in range(len(slices)): taus = np.mgrid[slices[j]].reshape(num_channels - 1, -1).astype(np.int16) -- GitLab