Skip to content

Commit 93532de

Browse files
committed
Fix failing docstring
1 parent d357eae commit 93532de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/imagestats.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ def mask_volume(img):
4646
4747
Examples
4848
--------
49+
>>> import numpy as np
4950
>>> import nibabel as nb
5051
>>> mask_data = np.zeros((20, 20, 20), dtype='u1')
5152
>>> mask_data[5:15, 5:15, 5:15] = 1
52-
>>> nb.imagestats.mask_volume(nb.Nifti1Image(mask_data, np.eye(4))
53+
>>> nb.imagestats.mask_volume(nb.Nifti1Image(mask_data, np.eye(4)))
5354
1000.0
5455
"""
5556
if not spatial_axes_first(img):

0 commit comments

Comments
 (0)