File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -1366,11 +1366,13 @@ class BeastInputSpec(CommandLineInputSpec):
1366
1366
desc = 'output file' ,
1367
1367
position = - 1 ,
1368
1368
argstr = '%s' ,
1369
- genfile = True )
1369
+ name_source = ['input_file' ],
1370
+ hash_files = False ,
1371
+ name_template = '%s_beast_mask.mnc' )
1370
1372
1371
1373
1372
1374
class BeastOutputSpec (TraitedSpec ):
1373
- output_file = File (desc = 'output file in raw/text format ' , exists = True )
1375
+ output_file = File (desc = 'output mask file ' , exists = True )
1374
1376
1375
1377
1376
1378
class Beast (CommandLine ):
@@ -1392,20 +1394,6 @@ class Beast(CommandLine):
1392
1394
output_spec = BeastOutputSpec
1393
1395
_cmd = 'mincbeast'
1394
1396
1395
- # FIXME Does this play nicely with a workflow?
1396
- def _gen_outfilename (self ):
1397
- output_file = self .inputs .output_file
1398
-
1399
- if isdefined (output_file ):
1400
- return output_file
1401
- else :
1402
- return os .path .splitext (self .inputs .input_file )[0 ] + '_mask.mnc'
1403
-
1404
- def _list_outputs (self ):
1405
- outputs = self .output_spec ().get ()
1406
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
1407
- return outputs
1408
-
1409
1397
1410
1398
class PikInputSpec (CommandLineInputSpec ):
1411
1399
input_file = File (
You can’t perform that action at this time.
0 commit comments