Skip to content

Commit a3564c5

Browse files
committed
Merge pull request #692 from satra/fix/fsdoctest
fix: doctest + white spaces
2 parents 1f9919f + 516e0d4 commit a3564c5

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def cmdline(self):
779779
cmd = ' '.join(allargs)
780780
iflogger.info('resume recon-all : %s'%cmd)
781781
return cmd
782-
782+
783783

784784
class BBRegisterInputSpec(FSTraitedSpec):
785785
subject_id = traits.Str(argstr='--s %s',

nipype/interfaces/freesurfer/utils.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,13 +1028,11 @@ def _list_outputs(self):
10281028
return outputs
10291029

10301030
class ExtractMainComponentInputSpec(CommandLineInputSpec):
1031-
in_file = File(
1032-
exists=True, mandatory=True, argstr='%s', position=1,
1033-
desc='input surface file')
1034-
out_file = File(
1035-
name_template ='%s.maincmp', name_source='in_file',
1036-
argstr='%s', position=2, keep_extension = True,
1037-
desc='surface containing main component')
1031+
in_file = File(exists=True, mandatory=True, argstr='%s', position=1,
1032+
desc='input surface file')
1033+
out_file = File(name_template='%s.maincmp', name_source='in_file',
1034+
argstr='%s', position=2,
1035+
desc='surface containing main component')
10381036

10391037
class ExtractMainComponentOutputSpec(TraitedSpec):
10401038
out_file = File(exists=True, desc='surface containing main component')
@@ -1048,9 +1046,9 @@ class ExtractMainComponent(CommandLine):
10481046
>>> from nipype.interfaces.freesurfer import ExtractMainComponent
10491047
>>> mcmp = ExtractMainComponent(in_file='lh.pial')
10501048
>>> mcmp.cmdline
1051-
'mris_extract_main_component lh.pial lh.pial.maincmp'
1049+
'mris_extract_main_component lh.pial lh.maincmp'
10521050
1053-
"""
1051+
"""
10541052

10551053
_cmd='mris_extract_main_component'
10561054
input_spec=ExtractMainComponentInputSpec

nipype/utils/filemanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def split_filename(fname):
7272
"""
7373

7474
special_extensions = [".nii.gz", ".tar.gz"]
75-
75+
7676
if fname and fname.endswith(os.path.sep):
7777
fname = fname[:-1]
7878

0 commit comments

Comments
 (0)