Skip to content

Commit 847a4fe

Browse files
mariomario
authored andcommitted
corrected check if mask is None | renamed params -> parameters
1 parent 50981f1 commit 847a4fe

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
@@ -28,7 +28,7 @@ class IRM:
2828
'''
2929
Input-referred model (IRM) mapping tool.
3030
31-
irm = IRM(params) creates an instance of the IRM class.
31+
irm = IRM(parameters) creates an instance of the IRM class.
3232
parameters is a dictionary with 5 required keys
3333
- f_sampling: sampling frequency (1/TR)
3434
- n_samples : number of samples (volumes)
@@ -230,7 +230,7 @@ def mapping(self, data, threshold = 100, mask = None):
230230
mean_signal = np.mean(data, axis = 0)
231231
data = zscore(data, axis = 0)
232232

233-
if mask==None:
233+
if mask.all()==None:
234234
mask = mean_signal >= threshold
235235

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

0 commit comments

Comments
 (0)