Skip to content

Commit 4e1cb1f

Browse files
committed
Fix unrelated PEP8 warnings
These warnings come up on CI, but not related to the other changes in this PR.
1 parent bd261d7 commit 4e1cb1f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nibabel/funcs.py

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

nibabel/viewers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ def __init__(self, data, affine=None, axes=None, title=None):
184184
5).astype(int)))
185185
ax.set_xlim(x[0], x[-1])
186186
yl = [self._data.min(), self._data.max()]
187-
yl = [l + s * np.diff(lims)[0] for l, s in zip(yl, [-1.01, 1.01])]
187+
yl = [L + s * np.diff(lims)[0]
188+
for L, s in zip(yl, [-1.01, 1.01])]
188189
patch = mpl_patch.Rectangle([-0.5, yl[0]], 1., np.diff(yl)[0],
189190
fill=True, facecolor=(0, 1, 0),
190191
edgecolor=(0, 1, 0), alpha=0.25)

0 commit comments

Comments
 (0)