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):
202
202
def ndindex (self ):
203
203
"""List the indexes corresponding to the space grid."""
204
204
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
+ ]
206
208
self ._ndindex = indexes .reshape ((indexes .shape [0 ], - 1 )).T
207
209
return self ._ndindex
208
210
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ def apply(
270
270
if targets is None
271
271
else targets
272
272
)
273
-
273
+
274
274
if targets .ndim == 2 :
275
275
targets = targets .T [np .newaxis , ...]
276
276
@@ -323,7 +323,7 @@ def apply(
323
323
324
324
if xfm_nvols > 1 :
325
325
assert targets .ndim == 3
326
-
326
+
327
327
# Targets must have shape (n_dim x n_time x n_vox)
328
328
n_dim , n_time , n_vox = targets .shape
329
329
# Reshape to (3, n_time x n_vox)
You can’t perform that action at this time.
0 commit comments