Skip to content

Commit 419cb4a

Browse files
mvdocrmarkello
authored andcommitted
Simplify input file formatting
1 parent 61eb2fe commit 419cb4a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

nipype/interfaces/afni/model.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class RemlfitInputSpec(AFNICommandInputSpec):
253253
File(
254254
exists=True),
255255
desc='Read time series dataset',
256-
argstr='-input %s',
256+
argstr='-input "%s"',
257257
mandatory=True,
258258
copyfile=False,
259259
sep=" ")
@@ -340,12 +340,7 @@ class Remlfit(AFNICommand):
340340
def _parse_inputs(self, skip=None):
341341
if skip is None:
342342
skip = []
343-
skip += ['in_files']
344-
# we'll have to deal with input ourselves because AFNI might want
345-
# everything into double quotes
346-
inputs = super(Remlfit, self)._parse_inputs(skip)
347-
inputs = [u'-input "{0}"'.format(' '.join(self.inputs.in_files))] + inputs
348-
return inputs
343+
return super(Remlfit, self)._parse_inputs(skip)
349344

350345
def _list_outputs(self):
351346
outputs = self.output_spec().get()

0 commit comments

Comments
 (0)