Skip to content

Commit 745bcd0

Browse files
committed
sty: pacify flake8
1 parent 140023e commit 745bcd0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

nitransforms/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

nitransforms/resampling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)