Commit 2fea8224 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'bf/deprecated_ndims' into 'master'

BF: Image.ndims (deprecated) was broken

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