Skip to content

Commit 90e1157

Browse files
committed
fix: define ndim in transforms chains
1 parent 92d15e1 commit 90e1157

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nitransforms/manip.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ def __len__(self):
6767
"""Enable using len()."""
6868
return len(self.transforms)
6969

70+
@property
71+
def ndim(self):
72+
"""Get the number of dimensions."""
73+
return max(x.ndim for x in self._transforms)
74+
7075
@property
7176
def transforms(self):
7277
"""Get the internal list of transforms."""

0 commit comments

Comments
 (0)