@@ -69,23 +69,3 @@ class RobexSegment(CommandLine):
69
69
input_spec = RobexInputSpec
70
70
output_spec = RobexOutputSpec
71
71
_cmd = 'runROBEX.sh'
72
-
73
- def _format_arg (self , name , trait_spec , value ):
74
- if name == "out_file" or name == "out_mask" :
75
- if Path (value ).name == value :
76
- value = os .path .join (os .getcwd (), Path (value ).name )
77
- setattr (self .inputs , name , value )
78
- return super (RobexSegment , self )._format_arg (name , trait_spec , value )
79
-
80
- def _list_outputs (self ):
81
- outputs = self ._outputs ().get ()
82
- outputs ["out_file" ] = self .inputs .out_file
83
- if isdefined (self .inputs .out_mask ):
84
- outputs ["out_mask" ] = self .inputs .out_mask
85
- return outputs
86
-
87
- def run (self , cwd = None , ignore_exception = None , ** inputs ):
88
- if not isdefined (self .inputs .out_file ):
89
- _ , base , extension = split_filename (self .inputs .in_file )
90
- self .inputs .out_file = base + "_brain_robex" + extension
91
- return super (RobexSegment , self ).run (cwd , ignore_exception , ** inputs )
0 commit comments