Skip to content

Commit b7248db

Browse files
committed
Merge remote-tracking branch 'upstream/maint/3.0.x' into maint/3.1.x
2 parents 91fb760 + b11dca0 commit b7248db

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Requirements for building docs
22
-r requirements.txt
3-
sphinx
3+
sphinx<3
44
numpydoc
55
texext
66
matplotlib >=1.3.1

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ 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 = [lim + s * np.diff(lims)[0] for lim, s in zip(yl, [-1.01, 1.01])]
188188
patch = mpl_patch.Rectangle([-0.5, yl[0]], 1., np.diff(yl)[0],
189189
fill=True, facecolor=(0, 1, 0),
190190
edgecolor=(0, 1, 0), alpha=0.25)

0 commit comments

Comments
 (0)