Skip to content

Commit e84af98

Browse files
committed
Added modulate -option for CreateWarped
1 parent 0dad360 commit e84af98

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,8 @@ class CreateWarpedInputSpec(SPMCommandInputSpec):
10841084
field='crt_warped.K')
10851085
interp = traits.Range(low=0, high=7, field='crt_warped.interp',
10861086
desc='degree of b-spline used for interpolation')
1087+
modulate = traits.Bool(field='crt_warped.jactransf',
1088+
desc="Modulate images")
10871089

10881090

10891091
class CreateWarpedOutputSpec(TraitedSpec):
@@ -1127,8 +1129,12 @@ def _list_outputs(self):
11271129
outputs['warped_files'] = []
11281130
for filename in self.inputs.image_files:
11291131
pth, base, ext = split_filename(filename)
1130-
outputs['warped_files'].append(os.path.realpath('w%s%s' % (base,
1131-
ext)))
1132+
if isdefined(self.inputs.modulate) and self.inputs.modulate:
1133+
outputs['warped_files'].append(os.path.realpath('mw%s%s' % (base,
1134+
ext)))
1135+
else:
1136+
outputs['warped_files'].append(os.path.realpath('w%s%s' % (base,
1137+
ext)))
11321138
return outputs
11331139

11341140

0 commit comments

Comments
 (0)