Skip to content

Commit 348a88a

Browse files
mariomario
authored andcommitted
corrected l_subsampled
1 parent 319e20d commit 348a88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/python/cni_toolbox/gadgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def convolve(self, x):
201201

202202
x_fft = fft(np.vstack((x.reshape(1,-1), np.zeros((self.l_subsampled, self.n_channels)))), axis=0)
203203
self.x_conv = np.vstack((self.x_conv, np.zeros((1, self.n_channels))))
204-
self.x_conv[self.step:self.step + self.l_subsampled, :] += np.abs(ifft(
204+
self.x_conv[self.step:self.step + self.l_subsampled - 1, :] += np.abs(ifft(
205205
x_fft * np.expand_dims(self.hrf_fft , axis=1), axis=0))
206206

207207
return self.x_conv[self.step, :]

0 commit comments

Comments
 (0)