Skip to content

Commit 8d1bded

Browse files
mariomario
authored andcommitted
corrected stacking of x_conv
1 parent 5e7554d commit 8d1bded

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
@@ -200,7 +200,7 @@ def convolve(self, x):
200200
'''
201201

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

0 commit comments

Comments
 (0)