Skip to content

Commit 319e20d

Browse files
mariomario
authored andcommitted
corrected l_subsampled
1 parent 3353b70 commit 319e20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/python/cni_toolbox/gadgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ def __init__(self, n_channels, sampling_rate = 2., l_kernel = 34):
181181
self.M2 = np.ones(self.n_channels)
182182
self.sigma = np.zeros(self.n_channels)
183183

184-
self.l_subsampled = int(self.l_kernel / self.p_sampling) - 1
184+
self.l_subsampled = int(self.l_kernel / self.p_sampling)
185185
timepoints = np.arange(0., self.l_kernel, self.p_sampling)
186186
self.hrf_fft = fft(two_gamma(timepoints), axis=0)
187-
self.x_conv = np.zeros((self.l_subsampled + 1, self.n_channels))
187+
self.x_conv = np.zeros((self.l_subsampled, self.n_channels))
188188

189189
def convolve(self, x):
190190
'''

0 commit comments

Comments
 (0)