Skip to content

Commit 8424b80

Browse files
author
Clark
committed
Additional preproc cleanup & line 255 fix
1 parent 993865e commit 8424b80

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
>>> os.chdir(datadir)
1010
"""
1111

12-
from builtins import range
13-
14-
__docformat__ = 'restructuredtext'
1512

1613
# Standard library imports
14+
from builtins import range
1715
from copy import deepcopy
1816
import os
1917

@@ -29,6 +27,8 @@
2927
from ...utils.filemanip import (fname_presuffix, filename_to_list,
3028
list_to_filename, split_filename)
3129

30+
__docformat__ = 'restructuredtext'
31+
3232

3333
class SliceTimingInputSpec(SPMCommandInputSpec):
3434
in_files = InputMultiPath(traits.Either(traits.List(File(exists=True)),
@@ -252,7 +252,8 @@ def _list_outputs(self):
252252

253253
if resliced_all:
254254
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)):
256257
realigned_run = []
257258
if isinstance(imgf, list):
258259
for i, inner_imgf in enumerate(filename_to_list(imgf)):
@@ -612,7 +613,6 @@ class Normalize12InputSpec(SPMCommandInputSpec):
612613
desc='Normalized output prefix')
613614

614615

615-
616616
class Normalize12OutputSpec(TraitedSpec):
617617
deformation_field = OutputMultiPath(File(exists=True),
618618
desc=('NIfTI file containing 3 '
@@ -877,8 +877,8 @@ def _list_outputs(self):
877877
outfield = '%s_%s_image' % (image, tissue)
878878
outputs[outfield] = fname_presuffix(
879879
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):
882882
outputs['bias_corrected_image'] = fname_presuffix(f, prefix='m')
883883
t_mat = fname_presuffix(f, suffix='_seg_sn.mat', use_ext=False)
884884
outputs['transformation_mat'] = t_mat

0 commit comments

Comments
 (0)