Skip to content

Commit 61e4289

Browse files
committed
STY: Satisfy recent flake8
1 parent 594ec76 commit 61e4289

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nibabel/funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def concat_images(images, check_affines=True, axis=None):
139139
i, len(img.shape), n_dim))
140140
if not np.all(np.array(img.shape)[idx_mask] == masked_shape):
141141
raise ValueError('shape {0} for image {1} not compatible with '
142-
'first image shape {2} with axis == {0}'.format(
142+
'first image shape {2} with axis == {3}'.format(
143143
img.shape, i, shape0, axis))
144144
if check_affines and not np.all(img.affine == affine):
145145
raise ValueError('Affine for image {0} does not match affine '

nibabel/viewers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __init__(self, data, affine=None, axes=None, title=None):
185185
5).astype(int)))
186186
ax.set_xlim(x[0], x[-1])
187187
yl = [self._data.min(), self._data.max()]
188-
yl = [l + s * np.diff(lims)[0] for l, s in zip(yl, [-1.01, 1.01])]
188+
yl = [lim + s * np.diff(lims)[0] for lim, s in zip(yl, [-1.01, 1.01])]
189189
patch = mpl_patch.Rectangle([-0.5, yl[0]], 1., np.diff(yl)[0],
190190
fill=True, facecolor=(0, 1, 0),
191191
edgecolor=(0, 1, 0), alpha=0.25)

0 commit comments

Comments
 (0)