diff --git a/Changelog b/Changelog index b8e594c29..f75ac8bc2 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,17 @@ Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM). References like "pr/298" refer to github pull request numbers. +5.3.2 (Wednesday 23 October 2024) +================================= + +Bug-fix release in the 5.3.x series. + +Bug fixes +--------- +* Restore MRS extension type to Nifti1Extension to maintain backwards compatibility. + (pr/1380) (CM) + + 5.3.1 (Tuesday 15 October 2024) =============================== @@ -46,9 +57,9 @@ NiBabel 6.0 will drop support for Numpy 1.x. New features ------------ -* Update NIfTI extension protocol to include ``.content : bytes``, ``.text : str`` and ``.json : dict`` - properties for accessing extension contents. Exceptions will be raised on ``.text`` and ``.json`` if - conversion fails. (pr/1336) (CM) +* Update NIfTI extension protocol to include ``.content : bytes``, ``.text : str`` and + ``.json() : dict`` properties/methods for accessing extension contents. + Exceptions will be raised on ``.text`` and ``.json()`` if conversion fails. (pr/1336) (CM) Enhancements ------------ diff --git a/nibabel/nifti1.py b/nibabel/nifti1.py index 37f75db10..0a4d25581 100644 --- a/nibabel/nifti1.py +++ b/nibabel/nifti1.py @@ -675,7 +675,7 @@ def _mangle(self, dataset: DicomDataset) -> bytes: (38, 'eval', NiftiExtension), (40, 'matlab', NiftiExtension), (42, 'quantiphyse', NiftiExtension), - (44, 'mrs', NiftiExtension[dict[str, ty.Any]]), + (44, 'mrs', Nifti1Extension), ), fields=('code', 'label', 'handler'), )