Skip to content

Commit 1fcf6d3

Browse files
author
bpinsard
committed
pep8
1 parent 50bdee9 commit 1fcf6d3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

nipype/interfaces/spm/utils.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def _list_outputs(self):
208208
outputs['out_file'] = os.path.abspath(self.inputs.out_file)
209209
return outputs
210210

211-
212211
class ApplyInverseDeformationInput(SPMCommandInputSpec):
213-
in_files=InputMultiPath(File(exists=True), mandatory=True, field='fnames',
212+
in_files = InputMultiPath(
213+
File(exists=True), mandatory=True, field='fnames',
214214
desc='Files on which deformation is applied')
215215
target = File(
216216
exists=True,
@@ -241,11 +241,12 @@ class ApplyInverseDeformationInput(SPMCommandInputSpec):
241241
minlen=3, maxlen=3,
242242
desc='3-element list (opt)')
243243

244-
244+
245245
class ApplyInverseDeformationOutput(TraitedSpec):
246246
out_files = OutputMultiPath(File(exists=True),
247247
desc='Transformed files')
248248

249+
249250
class ApplyInverseDeformation(SPMCommand):
250251
""" Uses spm to apply inverse deformation stored in a .mat file or a
251252
deformation field to a given file
@@ -261,13 +262,12 @@ class ApplyInverseDeformation(SPMCommand):
261262
>>> inv.run() # doctest: +SKIP
262263
"""
263264

264-
input_spec = ApplyInverseDeformationInput
265+
input_spec = ApplyInverseDeformationInput
265266
output_spec = ApplyInverseDeformationOutput
266-
267+
267268
_jobtype = 'util'
268269
_jobname = 'defs'
269270

270-
271271
def _format_arg(self, opt, spec, val):
272272
"""Convert input to appropriate format for spm
273273
"""
@@ -286,6 +286,5 @@ def _list_outputs(self):
286286
outputs['out_files'] = []
287287
for filename in self.inputs.in_files:
288288
_, fname = os.path.split(filename)
289-
outputs['out_files'].append(os.path.realpath('w%s'%fname))
289+
outputs['out_files'].append(os.path.realpath('w%s' % fname))
290290
return outputs
291-

0 commit comments

Comments
 (0)