Skip to content
Prev Previous commit
Next Next commit
Switch single and double quotes.
  • Loading branch information
tsalo committed Sep 16, 2016
commit ee143e813bd8f6bdf0e5b3b7c9dfd49182260e86
32 changes: 16 additions & 16 deletions nipype/interfaces/afni/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -3013,26 +3013,26 @@ class QualityIndex(CommandLine):


class NotesInputSpec(AFNICommandInputSpec):
in_file = File(desc='input file to 3dNotes',
argstr='%s',
in_file = File(desc="input file to 3dNotes",
argstr="%s",
position=-1,
mandatory=True,
exists=True,
copyfile=False)
add = traits.Str(desc='note to add',
argstr='-a "%s"')
add_history = traits.Str(desc='note to add to history',
argstr='-h "%s"',
xor=['rep_history'])
rep_history = traits.Str(desc='note with which to replace history',
argstr='-HH "%s"',
xor=['add_history'])
delete = traits.Int(desc='delete note number num',
argstr='-d %d')
ses = traits.Bool(desc='print to stdout the expanded notes',
argstr='-ses')
out_file = File(desc='output image file name',
argstr='%s')
add = traits.Str(desc="note to add",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, do not use Str from traits:

  1. Add import of Str from nipype.interfaces.base:
    from ..base import (..., Str)
  2. Define these inputs with the imported name:
add = Str(desc...)

argstr="-a '%s'")
add_history = traits.Str(desc="note to add to history",
argstr="-h '%s'",
xor=["rep_history"])
rep_history = traits.Str(desc="note with which to replace history",
argstr="-HH '%s'",
xor=["add_history"])
delete = traits.Int(desc="delete note number num",
argstr="-d %d")
ses = traits.Bool(desc="print to stdout the expanded notes",
argstr="-ses")
out_file = File(desc="output image file name",
argstr="%s")


class Notes(CommandLine):
Expand Down