Skip to content

Commit dfb2061

Browse files
Julien MarabottoJulien Marabotto
Julien Marabotto
authored and
Julien Marabotto
committed
ENH: Implement_ndim
Added two tests for ndim: assert nitl.Affine().ndim == 3; assert nitl.LinearTransformsMapping([nitl.Affine()]).ndim == 4 .
1 parent 91afb5d commit dfb2061

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nitransforms/tests/test_base.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ def _to_hdf5(klass, x5_root):
113113
)
114114

115115
#Test ndim returned by affine
116-
#breakpoint()
117116
assert nitl.Affine().ndim == 3
118-
assert nitl.LinearTransformsMapping(xfm.matrix).ndim == 4
117+
assert nitl.LinearTransformsMapping([nitl.Affine()]).ndim == 4
119118

120119
# Test applying to Gifti
121120
gii = nb.gifti.GiftiImage(

0 commit comments

Comments
 (0)