Skip to content

Commit db70721

Browse files
mariomario
authored andcommitted
improved handling of individual hrfs
1 parent 3e2d191 commit db70721

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/python/cni_toolbox/IRM.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, parameters, hrf = None):
7373

7474
if hrf != None:
7575
self.l_hrf = hrf.shape[0]
76-
if hrf.ndim>2:
76+
if hrf.ndim>1:
7777
hrf = np.reshape(hrf, (self.l_hrf, self.n_total))
7878
self.hrf_fft = fft(np.vstack((hrf,
7979
np.zeros((self.n_samples,
@@ -84,7 +84,7 @@ def __init__(self, parameters, hrf = None):
8484
np.zeros(self.n_samples)),
8585
axis = 0 )
8686
else:
87-
self.l_hrf = int(32 * self.f_sampling)
87+
self.l_hrf = int(34 * self.f_sampling)
8888
timepoints = np.arange(0,
8989
self.p_sampling * (self.n_samples +
9090
self.l_hrf) - 1,
@@ -140,7 +140,7 @@ def set_hrf(self, hrf):
140140
hemodynamic response function
141141
'''
142142
self.l_hrf = hrf.shape[0]
143-
if hrf.ndim>2:
143+
if hrf.ndim>1:
144144
hrf = np.reshape(hrf, (self.l_hrf, self.n_total))
145145
self.hrf_fft = fft(np.vstack((hrf,
146146
np.zeros((self.n_samples,

0 commit comments

Comments
 (0)