Skip to content

Commit 3189d76

Browse files
mariomario
authored andcommitted
convert number of timepoints to interger in __convolution__
1 parent cfef046 commit 3189d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/python/cni_toolbox/HGR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def __convolution__(self, x):
410410

411411
n_samples = x.shape[0]
412412
kernel = np.append(self.hrf, np.zeros(n_samples))
413-
x = np.vstack((x, np.zeros((np.ceil(self.l_hrf / self.p_sampling),
413+
x = np.vstack((x, np.zeros((np.ceil(self.l_hrf / self.p_sampling).astype(int),
414414
self.n_features))))
415415
x_conv = ifft(fft(x) * fft(kernel))
416416
return x_conv[:n_samples]

0 commit comments

Comments
 (0)