Python package to access a cacophony of neuro-imaging file formats
Bug-fix release in the 5.2.x series.
git
when reporting version info (#1286) (CM, reviewed by Yuri Victorovich)Full Changelog: https://github.com/nipy/nibabel/compare/5.2.0...5.2.1
New feature release in the 5.2.x series.
This release requires a minimum Python of 3.8 and NumPy 1.20, and has been tested up to Python 3.12 and NumPy 1.26.
~/...
) in strings passed to functions that accept paths (#1260) (Reinder Vos de Wael, reviewed by CM)affine=None
argument (#1253) (Blake Dewey, reviewed by CM)numpy.compat.py3k
module (#1243) (Eric Larson, reviewed by CM)Full Changelog: https://github.com/nipy/nibabel/compare/5.1.0...5.2.0
New feature release in the 5.1.x series.
Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
imagestats
available with import nibabel
(pr/1208) (Fabian Perez, reviewed by CM)nibabel.loadsave
(pr/1213) and nibabel.spatialimages.SpatialImage
APIs (pr/1179), nibabel.deprecated
, nibabel.deprecator
, nibabel.onetime
and nibabel.optpkg
modules (pr/1188), nibabel.volumeutils
(pr/1189), nibabel.filename_parser
and nibabel.openers
(pr/1197) (CM, reviewed by Zvi Baratz)nibabel._compression
module, resolving unexpected errors from pyzstd. (pr/1212) (CM)_version.pyi
stub to allow mypy to run without building nibabel (pr/1210) (CM)Full Changelog: https://github.com/nipy/nibabel/compare/5.0.1...5.1.0
Bug-fix release in the 5.0.x series.
Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
ParcelsAxis
(pr/1194) (Michiel Cottaar, reviewed by CM)InTemporaryDirectory
(pr/1184) (CM)py.typed
to module root to enable use of types in downstream projects (pr/1196) (CM, reviewed by Fernando Pérez-Garcia)New feature release in the 5.0.x series.
Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
SerializableImage
now has to_stream()
and from_stream()
methods to read/write streams implementing the io.IOBase
interface. A from_url()
method enables loading images from URLs. (pr/1129) (CM, reviewed by MB)TrkFile
supports TRKv3, an undocumented but generally compatible variant of TRKv2. (pr/1125) (CM)TCKFile
(pr/1175) (CM, reviewed by Matt Cieslak)ArrayProxy
(pr/1131) (CM, reviewed by MB)setup.cfg
to pyproject.toml
package configuration (pr/1133) (CM, reviewed by MB)Passing an int64
array to Nifti1Image
without a header or dtype argument will raise a ValueError
. (pr/1173) (CM)
tmpdirs.TemporaryDirectory
is deprecated in favor of tempfile.TemporaryDirectory
. (pr/1172) (CM, reviewed by Zvi Baratz)
The nisext
package is deprecated and will be removed in NiBabel 6.0. (pr/1170) (CM, reviewed by MB)
Drop support for Python 3.7, Numpy < 1.19 (pr/1177) (CM)
The following deprecated functions and methods will now raise ExpiredDeprecationError
s
nibabel.loadsave.read_img_data
nibabel.dataobj_images.DataobjImage.get_data
nibabel.loadsave.guessed_image_type
nibabel.onetime.setattr_on_read
nibabel.orientations.flip_axis
Modules, classes and functions that expired at 4.0 were fully removed. ExpiredDeprecationError
\s will now be AttributeError
\s.
Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
New feature release in the 4.0.x series.
'mask'
, 'compat'
and 'smallest'
dtype aliases to NIfTI images
to allow for dtype specifications that can depend on the contents of the data.
'mask'
is a synonym for uint8
. 'compat'
will find the nearest
Analyze-compatible (therefore widely supported) dtype that will not truncate
the data. 'smallest'
attempts to find the smallest integer dtype that will
contain the data. (pr/1096) (CM, reviewed by Chris Rorden and Josh Teves)dtype
arguments to Cifti2Image
(pr/1111) (CM)__init__()
and
to_filename()
to provide better control over output images. (pr/1082)
(CM, following discussions with Chris Rorden, Josh Teves, Jerome Dockes, and MB)ExternalFileBinary
GIFTI data arrays (PM, reviewed by CM)InTemporaryDirectory
as non-thread-safe (pr/1103) (Jacob Roberts,
reviewed by MB)__repr__
methods to GIFTI objects (pr/1092) (CM,
reviewed by Josh Teves and Hao-Ting Wang)distutils
(pr/1073) (CM, reviewed by MB)(u)int64
arrays to Nifti1Image
and subclasses will warn unless
a header
or dtype
option is passed; in the future this will become an
error.
Additionally, passing int
or 'int'
to set_data_dtype()
now raises
an error, requiring an explicit numpy dtype to make 64-bit integer images.
(pr/1082) (CM, following discussions with Chris Rorden, Josh Teves, Jerome Dockes,
and MB)nibabel.trackvis
nibabel.volumeutils.calculate_scale
nibabel.volumeutils.can_cast
nibabel.volumeutils.scale_min_max
nibabel.dataobj_images.DataobjImage.get_shape
nibabel.minc1.MincImage
(use Minc1Image
)nibabel.minc1.MincFile
(use Minc1File
)nibabel.filebasedimages.FileBasedImage.from_files
nibabel.filebasedimages.FileBasedImage.filespec_to_files
nibabel.filebasedimages.FileBasedImage.to_filespec
nibabel.filebasedimages.FileBasedImage.to_files
nibabel.arrayproxy.ArrayProxy.header
keep_file_open=="auto"
parameter to load method (now must be boolean)Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
New feature release in the 4.0.x series.
'mask'
, 'compat'
and 'smallest'
dtype aliases to NIfTI images
to allow for dtype specifications that can depend on the contents of the data.
'mask'
is a synonym for uint8
. 'compat'
will find the nearest
Analyze-compatible (therefore widely supported) dtype that will not truncate
the data. 'smallest'
attempts to find the smallest integer dtype that will
contain the data. (pr/1096) (CM, reviewed by Chris Rorden and Josh Teves)dtype
arguments to Cifti2Image
(pr/1111) (CM)__init__()
and
to_filename()
to provide better control over output images. (pr/1082)
(CM, following discussions with Chris Rorden, Josh Teves, Jerome Dockes, and MB)ExternalFileBinary
GIFTI data arrays (PM, reviewed by CM)InTemporaryDirectory
as non-thread-safe (pr/1103) (Jacob Roberts,
reviewed by MB)__repr__
methods to GIFTI objects (pr/1092) (CM,
reviewed by Josh Teves and Hao-Ting Wang)distutils
(pr/1073) (CM, reviewed by MB)(u)int64
arrays to Nifti1Image
and subclasses will warn unless
a header
or dtype
option is passed; in the future this will become an
error.
Additionally, passing int
or 'int'
to set_data_dtype()
now raises
an error, requiring an explicit numpy dtype to make 64-bit integer images.
(pr/1082) (CM, following discussions with Chris Rorden, Josh Teves, Jerome Dockes,
and MB)nibabel.trackvis
nibabel.volumeutils.calculate_scale
nibabel.volumeutils.can_cast
nibabel.volumeutils.scale_min_max
nibabel.dataobj_images.DataobjImage.get_shape
nibabel.minc1.MincImage
(use Minc1Image
)nibabel.minc1.MincFile
(use Minc1File
)nibabel.filebasedimages.FileBasedImage.from_files
nibabel.filebasedimages.FileBasedImage.filespec_to_files
nibabel.filebasedimages.FileBasedImage.to_filespec
nibabel.filebasedimages.FileBasedImage.to_files
nibabel.arrayproxy.ArrayProxy.header
keep_file_open=="auto"
parameter to load method (now must be boolean)Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
Bug fix release in the 3.2.x series.
Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
Bug fix release in the 3.2.x series.
np.float
(pr/964) (EL, reviewed by CM)Most work on NiBabel so far has been by Matthew Brett (MB), Chris Markiewicz (CM), Michael Hanke (MH), Marc-Alexandre Côté (MC), Ben Cipollini (BC), Paul McCarthy (PM), Chris Cheng (CC), Yaroslav Halchenko (YOH), Satra Ghosh (SG), Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM).
References like "pr/298" refer to github pull request numbers.
New feature release in the 3.2.x series.
nib-stats
CLI tool to expose new nibabel.imagestats
API. Initial implementation of volume calculations, a la fslstats -V
. (pr/952) (Julian Klug, reviewed by CM and GitHub user 0rC0)nib-roi
CLI tool to crop images and/or flip axes (pr/947) (CM, reviewed by Chris Cheng and Mathias Goncalves)img.to_filename()
in getting started guide (pr/946) (Fernando Pérez-Garcia, reviewed by MB, CM)to_bytes()
/from_bytes()
methods for Cifti2Image
(pr/938) (CM, reviewed by Mathias Goncalves)OrthoSlicer3D
(pr/958) (EL, reviewed by CM)onetime.setattr_on_read
, which has been a deprecated alias of auto_attr
(pr/948) (CM, reviewed by Ariel Rokem)