Skip to content

Commit b3844bc

Browse files
committed
return real timecourse and hrf
1 parent 40e4ed4 commit b3844bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/python/cni_toolbox/IRM.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def get_hrf(self):
110110
else:
111111
hrf = ifft(self.hrf_fft, axis = 0)[0:self.l_hrf]
112112

113-
return hrf
113+
return np.abs(hrf)
114114

115115
def get_stimulus(self):
116116
'''
@@ -130,7 +130,7 @@ def get_timecourses(self):
130130
predicted timecourses
131131
'''
132132

133-
return ifft(self.tc_fft, axis = 0)[0:self.n_samples, :]
133+
return np.abs(ifft(self.tc_fft, axis = 0)[0:self.n_samples, :])
134134

135135
def set_hrf(self, hrf):
136136
'''

0 commit comments

Comments
 (0)