We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfef046 commit 3189d76Copy full SHA for 3189d76
code/python/cni_toolbox/HGR.py
@@ -410,7 +410,7 @@ def __convolution__(self, x):
410
411
n_samples = x.shape[0]
412
kernel = np.append(self.hrf, np.zeros(n_samples))
413
- x = np.vstack((x, np.zeros((np.ceil(self.l_hrf / self.p_sampling),
+ x = np.vstack((x, np.zeros((np.ceil(self.l_hrf / self.p_sampling).astype(int),
414
self.n_features))))
415
x_conv = ifft(fft(x) * fft(kernel))
416
return x_conv[:n_samples]
0 commit comments