@@ -116,7 +116,7 @@ def get_hrf(self):
116
116
else :
117
117
hrf = ifft (self .hrf_fft , axis = 0 )[0 :self .l_hrf ]
118
118
119
- return np .abs (hrf )
119
+ return np .real (hrf )
120
120
121
121
def get_stimulus (self ):
122
122
'''
@@ -141,7 +141,7 @@ def get_timecourses(self):
141
141
predicted timecourses
142
142
'''
143
143
144
- return np .abs (ifft (self .tc_fft , axis = 0 )[0 :self .n_samples , :])
144
+ return np .real (ifft (self .tc_fft , axis = 0 )[0 :self .n_samples , :])
145
145
146
146
def set_hrf (self , hrf ):
147
147
'''
@@ -287,7 +287,7 @@ def get_timecourses(self):
287
287
predicted timecourses
288
288
'''
289
289
290
- return np .abs (ifft (self .tc_fft , axis = 0 )[0 :self .n_samples , :])
290
+ return np .real (ifft (self .tc_fft , axis = 0 )[0 :self .n_samples , :])
291
291
292
292
def set_hrf (self , hrf ):
293
293
'''
@@ -511,7 +511,7 @@ def _mapping_slope(self, data, threshold, mask):
511
511
if self .hrf_fft .ndim == 1 :
512
512
tc = np .transpose (
513
513
zscore (
514
- np .abs (
514
+ np .real (
515
515
ifft (self .tc_fft *
516
516
np .expand_dims (self .hrf_fft ,
517
517
axis = 1 ), axis = 0 )), axis = 0 ))
@@ -545,7 +545,7 @@ def _mapping_slope(self, data, threshold, mask):
545
545
546
546
tc = np .transpose (
547
547
zscore (
548
- np .abs (
548
+ np .real (
549
549
ifft (self .tc_fft *
550
550
np .expand_dims (self .hrf_fft [:, v ],
551
551
axis = 1 ), axis = 0 )), axis = 0 ))
@@ -620,7 +620,7 @@ def _mapping_sigma(self, data, threshold, mask):
620
620
if self .hrf_fft .ndim == 1 :
621
621
tc = np .transpose (
622
622
zscore (
623
- np .abs (
623
+ np .real (
624
624
ifft (self .tc_fft *
625
625
np .expand_dims (self .hrf_fft ,
626
626
axis = 1 ), axis = 0 )), axis = 0 ))
@@ -653,7 +653,7 @@ def _mapping_sigma(self, data, threshold, mask):
653
653
654
654
tc = np .transpose (
655
655
zscore (
656
- np .abs (
656
+ np .real (
657
657
ifft (self .tc_fft *
658
658
np .expand_dims (self .hrf_fft [:, v ],
659
659
axis = 1 ), axis = 0 )), axis = 0 ))
0 commit comments