Skip to content

Commit e7075bf

Browse files
committed
BF+TEST+STY: fix failing doctest; clean some tabs
get_frame_order doctest was failing because a float was expected when an int was returned. The code suggests an int is always right, fix to reflect this. Clean out some tabs in a docstring.
1 parent 1e84540 commit e7075bf

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

nibabel/ecat.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,13 @@ def __init__(self,fileobj, hdr):
407407
Returns
408408
-------
409409
mlist : numpy recarray nframes X 4 columns
410-
1 - Matrix identifier.
411-
2 - subheader record number
412-
3 - Last record number of matrix data block.
413-
4 - Matrix status:
414-
1 - exists - rw
415-
2 - exists - ro
416-
3 - matrix deleted
410+
1 - Matrix identifier.
411+
2 - subheader record number
412+
3 - Last record number of matrix data block.
413+
4 - Matrix status:
414+
1 - exists - rw
415+
2 - exists - ro
416+
3 - matrix deleted
417417
"""
418418
self.hdr = hdr
419419
self._mlist = self.get_mlist(fileobj)
@@ -473,9 +473,7 @@ def get_frame_order(self):
473473
>>> img = ecat.load(ecat_file)
474474
>>> mlist = img.get_mlist()
475475
>>> mlist.get_frame_order()
476-
{0: [0, 16842758.0]}
477-
478-
476+
{0: [0, 16842758]}
479477
"""
480478
mlist = self._mlist
481479
ids = mlist[:, 0].copy()

0 commit comments

Comments
 (0)