Skip to content

Commit 6951e89

Browse files
author
bpinsard
committed
fixes
1 parent b8367f2 commit 6951e89

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

nipype/interfaces/spm/utils.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,7 @@ def _list_outputs(self):
210210

211211

212212
class ApplyInverseDeformationInput(SPMCommandInputSpec):
213-
in_files = InputMultiPath(
214-
traits.Either(traits.List(File(exists=True)),File(exists=True)),
215-
field='fnames',
216-
mandatory=True,
213+
in_files=InputMultiPath(File(exists=True), mandatory=True, field='fnames',
217214
desc='Files on which deformation is applied')
218215
target = File(
219216
exists=True,
@@ -274,10 +271,8 @@ def _format_arg(self, opt, spec, val):
274271
def _list_outputs(self):
275272
outputs = self._outputs().get()
276273
outputs['out_files'] = []
277-
for imgf in filename_to_list(self.inputs.in_files):
278-
279-
outputs['out_files'].append(
280-
fname_presuffix(imgf,prefix='w',newpath=os.getcwd()))
281-
274+
for filename in self.inputs.in_files:
275+
_, fname = os.path.split(filename)
276+
outputs['out_files'].append(os.path.realpath('w%s'%fname))
282277
return outputs
283278

0 commit comments

Comments
 (0)