Skip to content

fix: doctest + white spaces #692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nipype/interfaces/freesurfer/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def cmdline(self):
cmd = ' '.join(allargs)
iflogger.info('resume recon-all : %s'%cmd)
return cmd


class BBRegisterInputSpec(FSTraitedSpec):
subject_id = traits.Str(argstr='--s %s',
Expand Down
16 changes: 7 additions & 9 deletions nipype/interfaces/freesurfer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,13 +1028,11 @@ def _list_outputs(self):
return outputs

class ExtractMainComponentInputSpec(CommandLineInputSpec):
in_file = File(
exists=True, mandatory=True, argstr='%s', position=1,
desc='input surface file')
out_file = File(
name_template ='%s.maincmp', name_source='in_file',
argstr='%s', position=2, keep_extension = True,
desc='surface containing main component')
in_file = File(exists=True, mandatory=True, argstr='%s', position=1,
desc='input surface file')
out_file = File(name_template='%s.maincmp', name_source='in_file',
argstr='%s', position=2,
desc='surface containing main component')

class ExtractMainComponentOutputSpec(TraitedSpec):
out_file = File(exists=True, desc='surface containing main component')
Expand All @@ -1048,9 +1046,9 @@ class ExtractMainComponent(CommandLine):
>>> from nipype.interfaces.freesurfer import ExtractMainComponent
>>> mcmp = ExtractMainComponent(in_file='lh.pial')
>>> mcmp.cmdline
'mris_extract_main_component lh.pial lh.pial.maincmp'
'mris_extract_main_component lh.pial lh.maincmp'

"""
"""

_cmd='mris_extract_main_component'
input_spec=ExtractMainComponentInputSpec
Expand Down
2 changes: 1 addition & 1 deletion nipype/utils/filemanip.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def split_filename(fname):
"""

special_extensions = [".nii.gz", ".tar.gz"]

if fname and fname.endswith(os.path.sep):
fname = fname[:-1]

Expand Down