File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -893,7 +893,10 @@ class BlobInputSpec(CommandLineInputSpec):
893
893
desc = 'output file' ,
894
894
genfile = True ,
895
895
argstr = '%s' ,
896
- position = - 1 ,)
896
+ position = - 1 ,
897
+ name_source = ['input_file' ],
898
+ hash_files = False ,
899
+ name_template = '%s_blob.mnc' )
897
900
898
901
trace = traits .Bool (
899
902
desc = 'compute the trace (approximate growth and shrinkage) -- FAST' ,
@@ -930,25 +933,6 @@ class Blob(CommandLine):
930
933
output_spec = BlobOutputSpec
931
934
_cmd = 'mincblob'
932
935
933
- def _gen_filename (self , name ):
934
- if name == 'output_file' :
935
- output_file = self .inputs .output_file
936
-
937
- if isdefined (output_file ):
938
- return os .path .abspath (output_file )
939
- else :
940
- return aggregate_filename ([self .inputs .input_file ], 'blob' )
941
- else :
942
- raise NotImplemented
943
-
944
- def _gen_outfilename (self ):
945
- return self ._gen_filename ('output_file' )
946
-
947
- def _list_outputs (self ):
948
- outputs = self .output_spec ().get ()
949
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
950
- return outputs
951
-
952
936
953
937
class CalcInputSpec (CommandLineInputSpec ):
954
938
_xor_input_files = ('input_files' , 'filelist' )
You can’t perform that action at this time.
0 commit comments