File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -1167,7 +1167,11 @@ class BBoxInputSpec(StdOutCommandLineInputSpec):
1167
1167
1168
1168
output_file = File (
1169
1169
desc = 'output file containing bounding box corners' ,
1170
- position = - 1 )
1170
+ position = - 1 ,
1171
+ name_source = ['input_file' ],
1172
+ hash_files = False ,
1173
+ name_template = '%s_bbox.txt' ,
1174
+ keep_extension = False )
1171
1175
1172
1176
threshold = traits .Int (
1173
1177
0 ,
@@ -1227,20 +1231,6 @@ class BBox(StdOutCommandLine):
1227
1231
output_spec = BBoxOutputSpec
1228
1232
_cmd = 'mincbbox'
1229
1233
1230
- # FIXME Does this play nicely with a workflow?
1231
- def _gen_outfilename (self ):
1232
- output_file = self .inputs .output_file
1233
-
1234
- if isdefined (output_file ):
1235
- return output_file
1236
- else :
1237
- return os .path .splitext (self .inputs .input_file )[0 ] + '_bbox.txt'
1238
-
1239
- def _list_outputs (self ):
1240
- outputs = self .output_spec ().get ()
1241
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
1242
- return outputs
1243
-
1244
1234
1245
1235
class BeastInputSpec (CommandLineInputSpec ):
1246
1236
"""
You can’t perform that action at this time.
0 commit comments