Skip to content

Commit e2b5a90

Browse files
authored
Merge pull request #708 from nipy/rel/2.3.2
REL: 2.3.2
2 parents c57662e + e551af8 commit e2b5a90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+299
-102
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ before_install:
9696
- virtualenv --python=python venv
9797
- source venv/bin/activate
9898
- python --version # just to check
99-
- pip install -U pip wheel # needed at one point
99+
- pip install -U pip setuptools>=27.0 wheel
100100
- retry pip install nose flake8 mock # always
101101
- pip install $EXTRA_PIP_FLAGS $DEPENDS $OPTIONAL_DEPENDS
102102
- if [ "${COVERAGE}" == "1" ]; then

Changelog

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,45 @@ Gerhard (SG), Eric Larson (EL), Yaroslav Halchenko (YOH) and Chris Cheng (CC).
2424

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

27+
2.3.2 (Wedmesday 2 January 2019)
28+
================================
29+
30+
Enhancements
31+
------------
32+
* Enable toggling crosshair with ``Ctrl-x`` in ``OrthoSlicer3D`` viewer (pr/701)
33+
(Miguel Estevan Moreno, reviewed by CM)
34+
35+
Bug fixes
36+
---------
37+
* Read .PAR files corresponding to ADC maps (pr/685) (Gregory R. Lee, reviewed
38+
by CM)
39+
* Increase maximum number of items read from Siemens CSA format (Igor Solovey,
40+
reviewed by CM, MB)
41+
* Check boolean dtypes with ``numpy.issubdtype(..., np.bool_)`` (pr/707)
42+
(Jon Haitz Legarreta Gorroño, reviewed by CM)
43+
44+
Maintenance
45+
-----------
46+
* Fix small typos in parrec2nii help text (pr/682) (Thomas Roos, reviewed by
47+
MB)
48+
* Remove deprecated calls to ``numpy.asscalar`` (pr/686) (CM, reviewed by
49+
Gregory R. Lee)
50+
* Update QA directives to accommodate Flake8 3.6 (pr/695) (CM)
51+
* Update DOI links to use ``https://doi.org`` (pr/703) (Katrin Leinweber,
52+
reviewed by CM)
53+
* Remove deprecated calls to ``numpy.fromstring`` (pr/700) (Ariel Rokem,
54+
reviewed by CM, MB)
55+
* Drop ``distutils`` support, require ``bz2file`` for Python 2.7 (pr/700)
56+
(CM, reviewed by MB)
57+
* Replace mutable ``bytes`` hack, disabled in numpy pre-release, with
58+
``bytearray``/``readinto`` strategy (pr/700) (Ariel Rokem, CM, reviewed by
59+
CM, MB)
60+
61+
API changes and deprecations
62+
----------------------------
63+
* Add ``Opener.readinto`` method to read file contents into pre-allocated buffers
64+
(pr/700) (Ariel Rokem, reviewed by CM, MB)
65+
2766
2.3.1 (Tuesday 16 October 2018)
2867
===============================
2968

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ install:
2222
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
2323

2424
# Install the dependencies of the project.
25+
- python -m pip install --upgrade pip setuptools wheel
2526
- pip install numpy scipy matplotlib nose h5py mock pydicom
2627
- pip install .
2728
- SET NIBABEL_DATA_DIR=%CD%\nibabel-data

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
# General information about the project.
8989
project = u'NiBabel'
90-
copyright = u'2006-2018, %(MAINTAINER)s <%(AUTHOR_EMAIL)s>' % rel
90+
copyright = u'2006-2019, %(MAINTAINER)s <%(AUTHOR_EMAIL)s>' % rel
9191

9292
# The version info for the project you're documenting, acts as replacement for
9393
# |version| and |release|, also used in various other places throughout the

doc/source/devel/make_release.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Release checklist
301301
text for adding a DOI badge in various formats. Copy the DOI Markdown text.
302302
The markdown will look something like this::
303303

304-
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.60847.svg)](http://dx.doi.org/10.5281/zenodo.60847)
304+
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.60847.svg)](https://doi.org/10.5281/zenodo.60847)
305305

306306
Go back to the Github release page for this release, click "Edit release".
307307
and copy the DOI into the release notes. Click "Update release".

doc/source/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ contributed code and discussion (in rough order of appearance):
8787
* Mathias Goncalves
8888
* Jakub Kaczmarzyk
8989
* Dimitri Papadopoulos Orfanos
90+
* Miguel Estevan Moreno
91+
* Thomas Roos
92+
* Igor Solovey
93+
* Jon Haitz Legarreta Gorroño
94+
* Katrin Leinweber
9095

9196
License reprise
9297
===============

nibabel/affines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77

88
from six.moves import reduce
9-
from .testing import setup_test # flake8: noqa F401
9+
from .testing import setup_test # noqa
1010

1111

1212
class AffineError(ValueError):

nibabel/analyze.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,10 +1057,8 @@ def to_file_map(self, file_map=None):
10571057
# Store consumable values for later restore
10581058
offset = hdr.get_data_offset()
10591059
# Scalars of slope, offset to get immutable values
1060-
slope = (np.asscalar(hdr['scl_slope']) if hdr.has_data_slope
1061-
else np.nan)
1062-
inter = (np.asscalar(hdr['scl_inter']) if hdr.has_data_intercept
1063-
else np.nan)
1060+
slope = hdr['scl_slope'].item() if hdr.has_data_slope else np.nan
1061+
inter = hdr['scl_inter'].item() if hdr.has_data_intercept else np.nan
10641062
# Check whether to calculate slope / inter
10651063
scale_me = np.all(np.isnan((slope, inter)))
10661064
if scale_me:

nibabel/casting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from platform import processor, machine
99

1010
import numpy as np
11-
from .testing import setup_test # flake8: noqa F401
11+
from .testing import setup_test # noqa
1212

1313

1414
class CastingError(Exception):
@@ -268,7 +268,7 @@ def type_info(np_type):
268268
# 80) but in calculations nexp in fact appears to be 11 as for float64
269269
ret.update(dict(width=width))
270270
return ret
271-
if vals == (105, 11, 16): # correctly detected double double
271+
if vals == (105, 11, 16): # correctly detected double double
272272
ret.update(dict(nmant=nmant, nexp=nexp, width=width))
273273
return ret
274274
# Oh dear, we don't recognize the type information. Try some known types

nibabel/cifti2/tests/test_cifti2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_cifti2_metadata():
5858
assert_equal(md.data, dict(metadata_test))
5959

6060
assert_equal(list(iter(md)), list(iter(collections.OrderedDict(metadata_test))))
61-
61+
6262
md.update({'a': 'aval', 'b': 'bval'})
6363
assert_equal(md.data, dict(metadata_test))
6464

@@ -310,7 +310,7 @@ def test_matrix():
310310

311311
assert_raises(ci.Cifti2HeaderError, m.insert, 0, mim_none)
312312
assert_equal(m.mapped_indices, [])
313-
313+
314314
h = ci.Cifti2Header(matrix=m)
315315
assert_equal(m.mapped_indices, [])
316316
m.insert(0, mim_0)

0 commit comments

Comments
 (0)