We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4d42a0 commit b51ec36Copy full SHA for b51ec36
nibabel/tests/test_coordimage.py
@@ -66,3 +66,18 @@ def test_Cifti2Image_as_CoordImage():
66
dobj = ones.dataobj.copy()
67
dobj.order = 'C' # Hack for image with BMA as the last axis
68
cimg = ci.CoordinateImage(dobj, caxis, ones.header)
69
+
70
+ assert caxis[...] is caxis
71
+ assert caxis[:] is caxis
72
73
+ subaxis = caxis[:100]
74
+ assert len(subaxis) == 100
75
+ assert len(subaxis.parcels) == 1
76
+ subaxis = caxis[100:]
77
+ assert len(subaxis) == len(caxis) - 100
78
+ assert len(subaxis.parcels) == len(caxis.parcels)
79
+ subaxis = caxis[100:-100]
80
+ assert len(subaxis) == len(caxis) - 200
81
82
83
+ caxis.get_indices('CIFTI_STRUCTURE_CORTEX_LEFT')
0 commit comments