Skip to content
Snippets Groups Projects
Commit 2fea8224 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'bf/deprecated_ndims' into 'master'

BF: Image.ndims (deprecated) was broken

See merge request fsl/fslpy!56
parents e6eae8f7 ae568f64
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -506,7 +506,7 @@ class Nifti(notifier.Notifier, meta.Meta): ...@@ -506,7 +506,7 @@ class Nifti(notifier.Notifier, meta.Meta):
details='Use ndim instead') details='Use ndim instead')
def ndims(self): def ndims(self):
"""Deprecated - use :mod::meth:``ndim`` instead. """ """Deprecated - use :mod::meth:``ndim`` instead. """
return self.ndim() return self.ndim
@deprecation.deprecated(deprecated_in='1.1.0', @deprecation.deprecated(deprecated_in='1.1.0',
......
...@@ -291,6 +291,7 @@ def _test_Image_atts(imgtype): ...@@ -291,6 +291,7 @@ def _test_Image_atts(imgtype):
assert tuple(i.nibImage.header.get_zooms()) == tuple(pixdims) assert tuple(i.nibImage.header.get_zooms()) == tuple(pixdims)
assert i.ndim == expndims assert i.ndim == expndims
assert i.ndims == expndims
assert i.dtype == dtype assert i.dtype == dtype
assert i.name == op.basename(path) assert i.name == op.basename(path)
assert i.dataSource == fslpath.addExt(path, assert i.dataSource == fslpath.addExt(path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment