Skip to content

Commit 5e7554d

Browse files
mariomario
authored andcommitted
renamed conv_x->conv_x in online processor
1 parent cdc8c7a commit 5e7554d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/python/cni_toolbox/gadgets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ 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.conv_x = np.append(self.conv_x, np.zeros(self.n_channels))
204-
self.conv_x[self.step:self.step + self.l_subsampled, :] += np.abs(ifft(
203+
self.x_conv = np.append(self.x_conv, np.zeros(self.n_channels))
204+
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

207-
return self.conv_x[self.step, :]
207+
return self.x_conv[self.step, :]
208208

209209
def update(self, x):
210210
'''

0 commit comments

Comments
 (0)