Skip to content

Commit 51833ca

Browse files
mariomario
authored andcommitted
corrected check if mask is None
1 parent d390b08 commit 51833ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/python/cni_toolbox/pRF.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def mapping(self, data, threshold = 100, mask = None):
320320
mean_signal = np.mean(data, axis = 0)
321321
data = zscore(data, axis = 0)
322322

323-
if mask==None:
323+
if mask.all()==None:
324324
mask = mean_signal >= threshold
325325

326326
mask = np.reshape(mask,self.n_total)

0 commit comments

Comments
 (0)