Nibabel

Latest version: v5.3.2

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 11

0.20100706.1

==============================

* Bugfix: NiftiFormat.vx2s() used the qform not the sform. Thanks to Tom
Holroyd for reporting.

0.20100412.1

===============================

* Bugfix: Unfortunate interaction between Python garbage collection and C
library caused memory problems. Thanks to Yaroslav Halchenko for the
diagnose and fix.

0.20090303.1

==============================

* Bugfix: Updating the NIfTI header from a dictionary was broken.
* Bugfix: Removed left-over print statement in extension code.
* Bugfix: Prevent saving of bogus 'None.nii' images when the filename
was previously assign, before calling NiftiImage.save() (Closes: 517920).
* Bugfix: Extension length was to short for all ``edata`` whose length matches
n*16-8, for all integer n.

0.20090205.1

==============================

* This release is the first in a series that aims stabilize the API and
finally result in PyNIfTI 1.0 with full support of the NIfTI1 standard.
* The whole package was restructured. The included renaming
``nifti.nifti(image,format,clibs)`` to ``nifti.(image,format,clibs)``. Redirect
modules make sure that existing user code will not break, but they will
issue a DeprecationWarning and will be removed with the release of PyNIfTI
1.0.
* Added a special extension that can embed any serializable Python object
into the NIfTI file header. The contents of this extension is
automatically expanded upon request into the ``.meta`` attribute of each
NiftiImage. When saving files to disk the content of the dictionary is also
automatically dumped into this extension.
Embedded meta data is not loaded automatically, since this has security
implications, because code from the file header is actually executed.
The documentation explicitly mentions this risk.
* Added :class:`~nifti.extensions.NiftiExtensions`. This is a container-like
handler to access and manipulate NIfTI1 header extensions.
* Exposed :class:`~nifti.image.MemMappedNiftiImage` in the root module.
* Moved :func:`~nifti.utils.cropImage` into the :mod:`~nifti.utils` module.
* From now on Sphinx is used to generate the documentation. This includes a
module reference that replaces that old API reference.
* Added methods :meth:`~nifti.format.NiftiFormat.vx2q` and
:meth:`~nifti.format.NiftiFormat.vx2s` to convert voxel indices into
coordinates defined by qform or sform respectively.
* Updating the ``cal_min`` and ``cal_max`` values in the NIfTI header when
saving a file is now conditional, but remains enabled by default.
* Full set of methods to query and modify axis units. This includes
expanding the previous ``xyzt_units`` field in the header dictionary into
editable ``xyz_unit`` and ``time_unit`` fields. The former ``xyzt_units`` field
is no longer available. See:
:meth:`~nifti.format.NiftiFormat.getXYZUnit`,
:meth:`~nifti.format.NiftiFormat.setXYZUnit`,
:meth:`~nifti.format.NiftiFormat.getTimeUnit`,
:meth:`~nifti.format.NiftiFormat.setTimeUnit`,
:attr:`~nifti.format.NiftiFormat.xyz_unit`,
:attr:`~nifti.format.NiftiFormat.time_unit`
* Full set of methods to query and manuipulate qform and sform codes. See:
:meth:`~nifti.format.NiftiFormat.getQFormCode`,
:meth:`~nifti.format.NiftiFormat.setQFormCode`,
:meth:`~nifti.format.NiftiFormat.getSFormCode`,
:meth:`~nifti.format.NiftiFormat.setSFormCode`,
:attr:`~nifti.format.NiftiFormat.qform_code`,
:attr:`~nifti.format.NiftiFormat.sform_code`
* Each image instance is now able to generate a human-readable dump of its
most important header information via ``__str__()``.
* :class:`~nifti.image.NiftiImage` objects can now be pickled.
* Switched to NumPy's distutils for building the package. Cleaned and
simplified the build procedure. Added optimization flags to SWIG call.
* :attr:`nifti.image.NiftiImage.filename` can now also be used to assign a
filename.
* Introduced :data:`nifti.__version__` as canonical version string.
* Removed ``updateQFormFromQuarternion()`` from the list of public methods of
:class:`~nifti.format.NiftiFormat`. This is an internal method that
should not be used in user code. However, a redirect to the new method
will remain in-place until PyNIfTI 1.0.
* Bugfix: :meth:`~nifti.image.NiftiImage.getScaledData` returns a
unmodified data array if ``slope`` is set to zero (as required by the NIfTI
standard). Thanks to Thomas Ross for reporting.
* Bugfix: Unicode filenames are now handled properly, as long as they do not
contain pure-unicode characters (since the NIfTI library does not support
them). Thanks to Gaël Varoquaux for reporting this issue.

0.20081017.1

===============================

* Updated included minimal copy of the nifticlibs to version 1.1.0.
* Few changes to the Makefiles to enhance Posix compatibility. Thanks to
Chris Burns.
* When building on non-Debian systems, only add include and library paths
pointing to the local nifticlibs copy, when it is actually built.
On Debian system the local copy is still not used at all, as a proper
nifticlibs package is guaranteed to be available.
* Added minimal setup_egg.py for setuptools users. Thanks to Gaël Varoquaux.
* PyNIfTI now does a proper wrapping of the image data with NumPy arrays,
which no longer leads to accidental memory leaks, when accessing array
data that has not been copied before (e.g. via the *data* property of
NiftiImage). Thanks to Gaël Varoquaux for mentioning this possibility.

0.20080710.1

==============================

* Bugfix: Pointer bug introduced by switch to new NumPy API in 0.20080624
Thanks to Christopher Burns for fixing it.
* Bugfix: Honored DeprecationWarning: sync() -> flush() for memory mapped
arrays. Again thanks to Christopher Burns.
* More unit tests and other improvements (e.g. fixed circular imports) done
by Christopher Burns.

Page 8 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.