Skip to content

Commit b11dca0

Browse files
committed
Merge remote-tracking branch 'upstream/maint/2.5.x' into maint/3.0.x
2 parents 80487b7 + 61e4289 commit b11dca0

File tree

5 files changed

+31
-6
lines changed

5 files changed

+31
-6
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# for it to be on multiple physical lines, so long as you remember: - There
55
# can't be any leading "-"s - All newlines will be removed, so use ";"s
66

7+
os: linux
78
dist: xenial
8-
sudo: true
99
language: python
10-
1110
cache: pip
11+
1212
env:
1313
global:
1414
- SETUP_REQUIRES="pip setuptools>=30.3.0 wheel"
@@ -25,7 +25,7 @@ python:
2525
- 3.7
2626
- 3.8
2727

28-
matrix:
28+
jobs:
2929
include:
3030
# Basic dependencies only
3131
- python: 3.5

Changelog

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,31 @@ Eric Larson (EL), Demian Wassermann, and Stephan Gerhard.
2525

2626
References like "pr/298" refer to github pull request numbers.
2727

28+
2.5.2 (Wednesday 8 April 2020)
29+
==============================
30+
31+
Bug-fix release in the 2.5.x series. This is an extended-support series,
32+
providing bug fixes for Python 2.7 and 3.4.
33+
34+
This and all future releases in the 2.5.x series will be incompatible with
35+
Python 3.9. The last compatible series of numpy and scipy are 1.16.x and
36+
1.2.x, respectively.
37+
38+
If you are able to upgrade to Python 3, it is recommended to upgrade to
39+
NiBabel 3.
40+
41+
Bug fixes
42+
---------
43+
* Change strings with invalid escapes to raw strings (pr/827) (EL, reviewed
44+
by CM)
45+
* Re-import externals/netcdf.py from scipy to resolve numpy deprecation
46+
(pr/821) (CM)
47+
48+
Maintenance
49+
-----------
50+
* Set maximum numpy to 1.16.x, maximum scipy to 1.2.x (pr/901) (CM)
51+
52+
2853
3.0.2 (Monday 9 March 2020)
2954
===========================
3055

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)