Skip to content

Commit c40276f

Browse files
author
cindeem
committed
NF: added simple examples
1 parent 210eb2e commit c40276f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nibabel/ecat.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,18 @@ def __init__(self, data, affine, header,
697697
stored in header or subheader
698698
file_map : mapping, optional
699699
mapping giving file information for this image format
700+
701+
702+
Examples
703+
--------
704+
>>> img = ecat.load('multiframe.v')
705+
>>> frame0 = img.get_frame(0)
706+
>>> frame0.shape
707+
(128,128,47)
708+
>>> data4d = img.get_data()
709+
>>> data4d.shape
710+
(128,128,47,6)
711+
700712
"""
701713
self._subheader = subheader
702714
self._mlist = mlist

0 commit comments

Comments
 (0)