|
9 | 9 | >>> os.chdir(datadir)
|
10 | 10 | """
|
11 | 11 |
|
12 |
| -from builtins import range |
13 |
| - |
14 |
| -__docformat__ = 'restructuredtext' |
15 | 12 |
|
16 | 13 | # Standard library imports
|
| 14 | +from builtins import range |
17 | 15 | from copy import deepcopy
|
18 | 16 | import os
|
19 | 17 |
|
|
29 | 27 | from ...utils.filemanip import (fname_presuffix, filename_to_list,
|
30 | 28 | list_to_filename, split_filename)
|
31 | 29 |
|
| 30 | +__docformat__ = 'restructuredtext' |
| 31 | + |
32 | 32 |
|
33 | 33 | class SliceTimingInputSpec(SPMCommandInputSpec):
|
34 | 34 | in_files = InputMultiPath(traits.Either(traits.List(File(exists=True)),
|
@@ -252,7 +252,8 @@ def _list_outputs(self):
|
252 | 252 |
|
253 | 253 | if resliced_all:
|
254 | 254 | outputs['realigned_files'] = []
|
255 |
| - for idx, imgf in enumerate(filename_to_list(self.inputs.in_files)): |
| 255 | + for idx, imgf in enumerate( |
| 256 | + filename_to_list(self.inputs.in_files)): |
256 | 257 | realigned_run = []
|
257 | 258 | if isinstance(imgf, list):
|
258 | 259 | for i, inner_imgf in enumerate(filename_to_list(imgf)):
|
@@ -612,7 +613,6 @@ class Normalize12InputSpec(SPMCommandInputSpec):
|
612 | 613 | desc='Normalized output prefix')
|
613 | 614 |
|
614 | 615 |
|
615 |
| - |
616 | 616 | class Normalize12OutputSpec(TraitedSpec):
|
617 | 617 | deformation_field = OutputMultiPath(File(exists=True),
|
618 | 618 | desc=('NIfTI file containing 3 '
|
@@ -877,8 +877,8 @@ def _list_outputs(self):
|
877 | 877 | outfield = '%s_%s_image' % (image, tissue)
|
878 | 878 | outputs[outfield] = fname_presuffix(
|
879 | 879 | f, prefix='%sc%d' % (prefix, tidx + 1))
|
880 |
| - if (isdefined(self.inputs.save_bias_corrected) |
881 |
| - and self.inputs.save_bias_corrected): |
| 880 | + if (isdefined(self.inputs.save_bias_corrected) and |
| 881 | + self.inputs.save_bias_corrected): |
882 | 882 | outputs['bias_corrected_image'] = fname_presuffix(f, prefix='m')
|
883 | 883 | t_mat = fname_presuffix(f, suffix='_seg_sn.mat', use_ext=False)
|
884 | 884 | outputs['transformation_mat'] = t_mat
|
|
0 commit comments