@@ -208,9 +208,9 @@ def _list_outputs(self):
208
208
outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
209
209
return outputs
210
210
211
-
212
211
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' ,
214
214
desc = 'Files on which deformation is applied' )
215
215
target = File (
216
216
exists = True ,
@@ -241,11 +241,12 @@ class ApplyInverseDeformationInput(SPMCommandInputSpec):
241
241
minlen = 3 , maxlen = 3 ,
242
242
desc = '3-element list (opt)' )
243
243
244
-
244
+
245
245
class ApplyInverseDeformationOutput (TraitedSpec ):
246
246
out_files = OutputMultiPath (File (exists = True ),
247
247
desc = 'Transformed files' )
248
248
249
+
249
250
class ApplyInverseDeformation (SPMCommand ):
250
251
""" Uses spm to apply inverse deformation stored in a .mat file or a
251
252
deformation field to a given file
@@ -261,13 +262,12 @@ class ApplyInverseDeformation(SPMCommand):
261
262
>>> inv.run() # doctest: +SKIP
262
263
"""
263
264
264
- input_spec = ApplyInverseDeformationInput
265
+ input_spec = ApplyInverseDeformationInput
265
266
output_spec = ApplyInverseDeformationOutput
266
-
267
+
267
268
_jobtype = 'util'
268
269
_jobname = 'defs'
269
270
270
-
271
271
def _format_arg (self , opt , spec , val ):
272
272
"""Convert input to appropriate format for spm
273
273
"""
@@ -286,6 +286,5 @@ def _list_outputs(self):
286
286
outputs ['out_files' ] = []
287
287
for filename in self .inputs .in_files :
288
288
_ , 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 ))
290
290
return outputs
291
-
0 commit comments