Skip to content
Snippets Groups Projects
Commit 26c00505 authored by ferrari's avatar ferrari
Browse files

Fix boundary of prepare mode

parent f579e245
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ def corr(data, pos, w_size, max_tdoa, decimate=1, mode='prepare', hyper=True, ve ...@@ -81,7 +81,7 @@ def corr(data, pos, w_size, max_tdoa, decimate=1, mode='prepare', hyper=True, ve
v2[k] = j v2[k] = j
dw_size = (w_size // decimate) & ~1 dw_size = (w_size // decimate) & ~1
if mode == 'prepare': 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 = [] tausf = []
for j in range(len(slices)): for j in range(len(slices)):
taus = np.mgrid[slices[j]].reshape(num_channels - 1, -1).astype(np.int16) taus = np.mgrid[slices[j]].reshape(num_channels - 1, -1).astype(np.int16)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment