Skip to content

Commit 36fd9c1

Browse files
committed
Fix MRIsCombine doctest and add necessary test file.
1 parent 01cea35 commit 36fd9c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -989,25 +989,25 @@ class MRIsCombine(FSCommand):
989989
-------
990990
991991
>>> import nipype.interfaces.freesurfer as fs
992-
>>> mris = fs.MRIsConvert()
992+
>>> mris = fs.MRIsCombine()
993993
>>> mris.inputs.in_file1 = 'lh.pial'
994994
>>> mris.inputs.in_file2 = 'rh.pial'
995-
>>> mris.inputs.out_file = 'bh.pial'
995+
>>> mris.inputs.out_file = 'out.stl'
996996
>>> mris.cmdline # doctest: +ALLOW_UNICODE
997-
'mris_convert --combine_surfs lh.pial rh.pial bh.pial'
997+
'mris_convert --combinesurfs lh.pial rh.pial out.stl'
998998
>>> mris.run() # doctest: +SKIP
999999
"""
10001000
_cmd = 'mris_convert'
10011001
input_spec = MRIsCombineInputSpec
10021002
output_spec = MRIsCombineOutputSpec
1003-
1003+
10041004
def _list_outputs(self):
10051005
outputs = self.output_spec().get()
10061006
if any(self.inputs.out_file.startswith(pre) for pre in ['lh.', 'rh.']):
10071007
outputs['out_file'] = self.inputs.out_file
10081008
else:
10091009
outputs['out_file'] = 'lh.' + self.inputs.out_file
1010-
1010+
10111011
return outputs
10121012

10131013

nipype/testing/data/rh.pial

Whitespace-only changes.

0 commit comments

Comments
 (0)