@@ -1130,28 +1130,29 @@ def _format_arg(self, opt, spec, val):
1130
1130
if not isdefined (self .inputs .out_label_fusion ):
1131
1131
retval = '-o {0}' .format (self .inputs .out_intensity_fusion_name_format )
1132
1132
elif opt == 'atlas_image' :
1133
- atlas_image_cmd = " " .join (
1134
- [ '-g [{0}]' .format ("," .join (
1135
- fn for fn in ai ) ) for ai in self .inputs .atlas_image ]
1133
+ atlas_image_cmd = " " .join (
1134
+ ['-g [{0}]' .format (", " .join ("'%s'" % fn for fn in ai ))
1135
+ for ai in self .inputs .atlas_image ]
1136
1136
)
1137
1137
retval = atlas_image_cmd
1138
1138
elif opt == 'target_image' :
1139
- target_image_cmd = " " .join (
1140
- [ '-t [{0}]' .format ("," .join (
1141
- fn for fn in ai ) ) for ai in self .inputs .target_image ]
1139
+ target_image_cmd = " " .join (
1140
+ ['-t [{0}]' .format (", " .join ("'%s'" % fn for fn in ai ))
1141
+ for ai in self .inputs .target_image ]
1142
1142
)
1143
1143
retval = target_image_cmd
1144
1144
elif opt == 'atlas_segmentation_image' :
1145
1145
assert len (val ) == len (self .inputs .atlas_image ), "Number of specified " \
1146
1146
"segmentations should be identical to the number of atlas image " \
1147
1147
"sets {0}!={1}" .format (len (val ), len (self .inputs .atlas_image ))
1148
- atlas_segmentation_image_cmd = " " .join (
1149
- [ '-t [{0}]' .format ( fn ) for fn in self .inputs .atlas_segmentation_image ]
1148
+
1149
+ atlas_segmentation_image_cmd = " " .join (
1150
+ ['-l {0}' .format (fn ) for fn in self .inputs .atlas_segmentation_image ]
1150
1151
)
1151
1152
retval = atlas_segmentation_image_cmd
1152
1153
else :
1153
1154
1154
- return super (ANTSCommand , self )._format_arg (opt , spec , val )
1155
+ return super (AntsJointFusion , self )._format_arg (opt , spec , val )
1155
1156
return retval
1156
1157
1157
1158
def _list_outputs (self ):
0 commit comments