Skip to content

Commit 6863271

Browse files
committed
Merge remote-tracking branch 'upstream/maint/3.0.x'
2 parents f300524 + 864fd5e commit 6863271

File tree

11 files changed

+37
-22
lines changed

11 files changed

+37
-22
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ B. Nolan Nichols <[email protected]> Nolan Nichols <[email protected]
1313
Basile Pinsard <[email protected]> bpinsard <[email protected]>
1414
Basile Pinsard <[email protected]> bpinsard <[email protected]>
1515
Ben Cipollini <[email protected]> Ben Cipollini <[email protected]>
16+
Benjamin C Darwin <[email protected]>
1617
Bertrand Thirion <[email protected]> bthirion <[email protected]>
1718
1819
Christian Haselgrove <[email protected]> Christian Haselgrove <[email protected]>

.zenodo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@
259259
{
260260
"name": "Schwartz, Yannick"
261261
},
262+
{
263+
"affiliation": "Hospital for Sick Children",
264+
"name": "Darwin, Benjamin C"
265+
},
262266
{
263267
"affiliation": "INRIA",
264268
"name": "Thirion, Bertrand",

Changelog

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

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

28+
3.0.1 (Monday 27 January 2020)
29+
==============================
30+
31+
Bug fixes
32+
---------
33+
* Test failed by using array method on tuple. (pr/860) (Ben Darwin, reviewed by
34+
CM)
35+
* Validate ``ExpiredDeprecationError``\s, promoted by 3.0 release from
36+
``DeprecationWarning``\s. (pr/857) (CM)
37+
38+
Maintenance
39+
-----------
40+
* Remove logic accommodating numpy without float16 types. (pr/866) (CM)
41+
* Accommodate new numpy dtype strings. (pr/858) (CM)
42+
43+
2844
3.0.0 (Wednesday 18 December 2019)
2945
==================================
3046

@@ -66,6 +82,8 @@ Bug fixes
6682
* Sliced ``Tractogram``s no longer ``apply_affine`` to the original
6783
``Tractogram``'s streamlines. (pr/811) (MC, reviewed by Serge Koudoro,
6884
Philippe Poulin, CM, MB)
85+
* Change strings with invalid escapes to raw strings (pr/827) (EL, reviewed
86+
by CM)
6987
* Re-import externals/netcdf.py from scipy to resolve numpy deprecation
7088
(pr/821) (CM)
7189

doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
sphinx
44
numpydoc
55
texext
6-
matplotlib>=1.3
6+
matplotlib >=1.3.1

doc/source/conf.py

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

100100
# General information about the project.
101101
project = u'NiBabel'
102-
copyright = u'2006-2019, %(maintainer)s <%(author_email)s>' % metadata
102+
copyright = u'2006-2020, %(maintainer)s <%(author_email)s>' % metadata
103103

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

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ contributed code and discussion (in rough order of appearance):
104104
* Hao-Ting Wang
105105
* Dorota Jarecka
106106
* Chris Gorgolewski
107+
* Benjamin C Darwin
107108

108109
License reprise
109110
===============

doc/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Requirements
8989
* h5py_ (optional, for MINC2 support)
9090
* PyDICOM_ 0.9.9 or greater (optional, for DICOM support)
9191
* `Python Imaging Library`_ (optional, for PNG conversion in DICOMFS)
92-
* nose_ 0.11 or greater (optional, to run the tests)
92+
* nose_ 0.11 or greater and pytest_ (optional, to run the tests)
9393
* sphinx_ (optional, to build the documentation)
9494

9595
Get the development sources

doc/source/links_names.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
.. _emacs_python_mode: http://www.emacswiki.org/cgi-bin/wiki/PythonMode
8484
.. _doctest-mode: http://ed.loper.org/projects/doctestmode/
8585
.. _nose: http://somethingaboutorange.com/mrl/projects/nose
86+
.. _pytest: https://docs.pytest.org/
8687
.. _`python coverage tester`: http://nedbatchelder.com/code/coverage/
8788
.. _bitbucket: https://bitbucket.org
8889
.. _six: http://pythonhosted.org/six

nibabel/casting.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,6 @@ def shared_range(flt_type, int_type):
171171
# types.
172172
# ----------------------------------------------------------------------------
173173

174-
try:
175-
_float16 = np.float16
176-
except AttributeError: # float16 not present in np < 1.6
177-
_float16 = None
178-
179-
180174
class FloatingError(Exception):
181175
pass
182176

@@ -242,7 +236,7 @@ def type_info(np_type):
242236
minexp=info.minexp,
243237
maxexp=info.maxexp,
244238
width=width)
245-
if np_type in (_float16, np.float32, np.float64,
239+
if np_type in (np.float16, np.float32, np.float64,
246240
np.complex64, np.complex128):
247241
return ret
248242
info_64 = np.finfo(np.float64)

nibabel/tests/test_floating.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@
1515
from nose import SkipTest
1616
from nose.tools import assert_equal, assert_raises, assert_true, assert_false
1717

18-
IEEE_floats = [np.float32, np.float64]
19-
try:
20-
np.float16
21-
except AttributeError: # float16 not present in np < 1.6
22-
have_float16 = False
23-
else:
24-
have_float16 = True
25-
if have_float16:
26-
IEEE_floats.append(np.float16)
18+
IEEE_floats = [np.float16, np.float32, np.float64]
2719

2820
LD_INFO = type_info(np.longdouble)
2921

@@ -201,8 +193,6 @@ def test_as_int_np_fix():
201193

202194
def test_floor_exact_16():
203195
# A normal integer can generate an inf in float16
204-
if not have_float16:
205-
raise SkipTest('No float16')
206196
assert_equal(floor_exact(2**31, np.float16), np.inf)
207197
assert_equal(floor_exact(-2**31, np.float16), -np.inf)
208198

0 commit comments

Comments
 (0)