Skip to content

Commit 32bd1e4

Browse files
authored
Merge pull request #1174 from nipy/rel/5.0.0
REL: 5.0.0
2 parents b5a4b8c + 8360597 commit 32bd1e4

File tree

5 files changed

+103
-18
lines changed

5 files changed

+103
-18
lines changed

.zenodo.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
{
107107
"name": "Madison, Cindee"
108108
},
109+
{
110+
"affiliation": "CEA",
111+
"name": "Papadopoulos Orfanos, Dimitri",
112+
"orcid": "0000-0002-1242-8990"
113+
},
114+
{
115+
"name": "S\u00f3lon, Anibal"
116+
},
109117
{
110118
"name": "Moloney, Brendan"
111119
},
@@ -117,6 +125,9 @@
117125
"name": "Goncalves, Mathias",
118126
"orcid": "0000-0002-7252-7771"
119127
},
128+
{
129+
"name": "Baratz, Zvi"
130+
},
120131
{
121132
"affiliation": "Montreal Neurological Institute and Hospital",
122133
"name": "Markello, Ross",
@@ -127,9 +138,6 @@
127138
"name": "Riddell, Cameron",
128139
"orcid": "0000-0001-8950-0375"
129140
},
130-
{
131-
"name": "S\u00f3lon, Anibal"
132-
},
133141
{
134142
"name": "Burns, Christopher"
135143
},
@@ -160,11 +168,6 @@
160168
{
161169
"name": "Subramaniam, Krish"
162170
},
163-
{
164-
"affiliation": "CEA",
165-
"name": "Papadopoulos Orfanos, Dimitri",
166-
"orcid": "0000-0002-1242-8990"
167-
},
168171
{
169172
"name": "Van, Andrew"
170173
},
@@ -305,9 +308,6 @@
305308
{
306309
"name": "Schwartz, Yannick"
307310
},
308-
{
309-
"name": "Baratz, Zvi"
310-
},
311311
{
312312
"affiliation": "Hospital for Sick Children",
313313
"name": "Darwin, Benjamin C"

Changelog

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

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

28+
5.0.0 (Monday 9 January 2023)
29+
=============================
30+
31+
New feature release in the 5.0.x series.
32+
33+
New features
34+
------------
35+
* :class:`~nibabel.filebasedimages.SerializableImage` now has
36+
:meth:`~nibabel.filebasedimages.SerializableImage.to_stream()` and
37+
:meth:`~nibabel.filebasedimages.SerializableImage.from_stream()` methods to
38+
read/write streams implementing the :class:`~io.IOBase` interface. A
39+
:meth:`~nibabel.filebasedimages.SerializableImage.from_url()` method
40+
enables loading images from URLs. (pr/1129) (CM, reviewed by MB)
41+
* :class:`~nibabel.streamlines.trk.TrkFile` supports TRKv3, an
42+
undocumented but generally compatible variant of TRKv2. (pr/1125) (CM)
43+
44+
Enhancements
45+
------------
46+
* Support multiline header fields in :class:`~nibabel.streamlines.tck.TCKFile`
47+
(pr/1175) (CM, reviewed by Matt Cieslak)
48+
* Make layout order an initialization parameter of
49+
:class:`~nibabel.arrayproxy.ArrayProxy` (pr/1131) (CM, reviewed by MB)
50+
* Initial support for type annotations. (pr/1115, pr/1178) (CM, reviewed by
51+
Zvi Baratz)
52+
53+
Bug fixes
54+
---------
55+
* Handle extension/file-format mismatches implemented incompletely in pr/1013
56+
(pr/1138) (CM, reviewed by Thomas Phil)
57+
* Improve handling of invalid TCK files, which could sometimes cause an
58+
infinite loop (pr/1140) (Anibal Solon, reviewed by CM)
59+
* Clean up ECAT test case that left filehandle open and failed to use class
60+
variables (pr/1155) (Dimitri Papadopoulos, reviewed by CM)
61+
62+
Maintenance
63+
-----------
64+
* Simplify TCK reading code by assuming files are open in binary mode
65+
(pr/1142) (Anibal Solon, reviewed by MC, CM)
66+
* Code support for tests covering deprecated functionality (pr/1159) (CM)
67+
* Miscellaneous code cleanups (pr/1148, pr/1149, pr/1153, pr/1154, pr/1156)
68+
(Dimitri Papadopoulos, reviewed by CM)
69+
* Update CI to build, test and deploy PyPI artifacts (pr/1134) (CM, reviewed
70+
by MB)
71+
* Transition from ``setup.cfg`` to ``pyproject.toml`` package configuration
72+
(pr/1133) (CM, reviewed by MB)
73+
* Addressed race conditions preventing running tests with pytest-xdist_.
74+
(pr/1157, pr/1158) (CM, reviewed by Christian Haselgrove)
75+
* Apply blue_ and isort_ auto-formatters and provide pre-commit_ configuration
76+
to reduce human burden of style guidelines. (pr/1124, pr/1165, pr/1169)
77+
(CM and Zvi Baratz)
78+
* Manage versioning with setuptools_scm_ (pr/1171) (CM, reviewed by Zvi Baratz)
79+
* Reduce installed package size by excluding very large test file (pr/1176)
80+
(CM, reviewed by Zvi Baratz)
81+
82+
API changes and deprecations
83+
----------------------------
84+
* Passing an ``int64`` array to :class:`~nibabel.nifti1.Nifti1Image` without a
85+
header or dtype argument will raise a ``ValueError``. (pr/1173) (CM)
86+
* :class:`nibabel.tmpdirs.TemporaryDirectory` is deprecated in favor of
87+
:class:`tempfile.TemporaryDirectory`. (pr/1172) (CM, reviewed by Zvi
88+
Baratz)
89+
* The ``nisext`` package is deprecated and will be removed in NiBabel 6.0.
90+
(pr/1170) (CM, reviewed by MB)
91+
* Drop support for Python 3.7, Numpy < 1.19 (pr/1177) (CM)
92+
* The following deprecated functions and methods will now raise
93+
``ExpiredDeprecationError``\s
94+
95+
* :func:`nibabel.loadsave.read_img_data`
96+
* :meth:`nibabel.dataobj_images.DataobjImage.get_data`
97+
* :func:`nibabel.loadsave.guessed_image_type`
98+
* :func:`nibabel.onetime.setattr_on_read`
99+
* :func:`nibabel.orientations.flip_axis`
100+
101+
* Modules, classes and functions that expired at 4.0 were fully removed.
102+
``ExpiredDeprecationError``\s will now be ``AttributeError``\s.
103+
104+
.. _blue: https://blue.readthedocs.io
105+
.. _isort: https://pycqa.github.io/isort/
106+
.. _pre-commit: https://pre-commit.com/
107+
.. _pytest-xdist: https://pytest-xdist.readthedocs.io
108+
.. _setuptools_scm: https://github.com/pypa/setuptools_scm
109+
110+
28111
4.0.2 (Wednesday 31 August 2022)
29112
================================
30113

doc/source/installation.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,15 @@ is for you.
8181
Requirements
8282
------------
8383

84-
.. check these against setup.cfg
84+
.. check these against pyproject.toml
8585
86-
* Python_ 3.6 or greater
87-
* NumPy_ 1.14 or greater
88-
* Packaging_ 14.3 or greater
86+
* Python_ 3.8 or greater
87+
* NumPy_ 1.19 or greater
88+
* Packaging_ 17.0 or greater
89+
* Setuptools_
8990
* SciPy_ (optional, for full SPM-ANALYZE support)
9091
* h5py_ (optional, for MINC2 support)
91-
* PyDICOM_ 0.9.9 or greater (optional, for DICOM support)
92+
* PyDICOM_ 1.0.0 or greater (optional, for DICOM support)
9293
* `Python Imaging Library`_ (optional, for PNG conversion in DICOMFS)
9394
* pytest_ (optional, to run the tests)
9495
* sphinx_ (optional, to build the documentation)

nibabel/tests/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import tempfile
77
from os import environ as env
88
from os.path import join as pjoin
9+
from tempfile import TemporaryDirectory
910

1011
import pytest
1112

@@ -21,7 +22,6 @@
2122
get_data_path,
2223
make_datasource,
2324
)
24-
from ..tmpdirs import TemporaryDirectory
2525
from .test_environment import DATA_KEY, USER_KEY, with_environment
2626

2727

nibabel/tests/test_loadsave.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import shutil
66
from os.path import dirname
77
from os.path import join as pjoin
8+
from tempfile import TemporaryDirectory
89

910
import numpy as np
1011

@@ -21,7 +22,7 @@
2122
from ..openers import Opener
2223
from ..optpkg import optional_package
2324
from ..testing import expires
24-
from ..tmpdirs import InTemporaryDirectory, TemporaryDirectory
25+
from ..tmpdirs import InTemporaryDirectory
2526

2627
_, have_scipy, _ = optional_package('scipy')
2728
_, have_pyzstd, _ = optional_package('pyzstd')

0 commit comments

Comments
 (0)