File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1084,6 +1084,8 @@ class CreateWarpedInputSpec(SPMCommandInputSpec):
1084
1084
field = 'crt_warped.K' )
1085
1085
interp = traits .Range (low = 0 , high = 7 , field = 'crt_warped.interp' ,
1086
1086
desc = 'degree of b-spline used for interpolation' )
1087
+ modulate = traits .Bool (field = 'crt_warped.jactransf' ,
1088
+ desc = "Modulate images" )
1087
1089
1088
1090
1089
1091
class CreateWarpedOutputSpec (TraitedSpec ):
@@ -1127,8 +1129,12 @@ def _list_outputs(self):
1127
1129
outputs ['warped_files' ] = []
1128
1130
for filename in self .inputs .image_files :
1129
1131
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 )))
1132
1138
return outputs
1133
1139
1134
1140
You can’t perform that action at this time.
0 commit comments