File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,9 @@ def inverse(self):
202202 def ndindex (self ):
203203 """List the indexes corresponding to the space grid."""
204204 if self ._ndindex is None :
205- indexes = np .mgrid [0 :self ._shape [0 ], 0 :self ._shape [1 ], 0 :self ._shape [2 ]]
205+ indexes = np .mgrid [
206+ 0 : self ._shape [0 ], 0 : self ._shape [1 ], 0 : self ._shape [2 ]
207+ ]
206208 self ._ndindex = indexes .reshape ((indexes .shape [0 ], - 1 )).T
207209 return self ._ndindex
208210
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ def apply(
270270 if targets is None
271271 else targets
272272 )
273-
273+
274274 if targets .ndim == 2 :
275275 targets = targets .T [np .newaxis , ...]
276276
@@ -323,7 +323,7 @@ def apply(
323323
324324 if xfm_nvols > 1 :
325325 assert targets .ndim == 3
326-
326+
327327 # Targets must have shape (n_dim x n_time x n_vox)
328328 n_dim , n_time , n_vox = targets .shape
329329 # Reshape to (3, n_time x n_vox)
You can’t perform that action at this time.
0 commit comments