Skip to content

Commit 0927424

Browse files
BF: fixed doctest for python 2.7
1 parent 36c162d commit 0927424

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nibabel/cifti2/cifti2_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@
8181
You can also iterate over all brain structures in a brain model:
8282
8383
>>> for idx, (name, slc, bm) in enumerate(bm_full.iter_structures()):
84-
... print(name, slc)
84+
... print((str(name), slc))
8585
... assert bm == bm_full[slc]
8686
... assert bm == bm_cortex if idx == 0 else bm_thal
87-
CIFTI_STRUCTURE_CORTEX_LEFT slice(0, 3, None)
88-
CIFTI_STRUCTURE_THALAMUS_LEFT slice(3, None, None)
87+
('CIFTI_STRUCTURE_CORTEX_LEFT', slice(0, 3, None))
88+
('CIFTI_STRUCTURE_THALAMUS_LEFT', slice(3, None, None))
8989
9090
In this case there will be two iterations, namely:
9191
('CIFTI_STRUCTURE_CORTEX_LEFT', slice(0, <size of cortex mask>), bm_cortex)

0 commit comments

Comments
 (0)