File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,18 @@ def test_NwarpAdjust_inputs():
1616 usedefault = True ,
1717 ),
1818 in_files = dict (argstr = '-source %s' , ),
19+ num_threads = dict (
20+ nohash = True ,
21+ usedefault = True ,
22+ ),
1923 out_file = dict (
2024 argstr = '-prefix %s' ,
2125 keep_extension = True ,
2226 name_source = 'in_files' ,
2327 name_template = '%s_NwarpAdjust' ,
2428 requires = ['in_files' ],
2529 ),
30+ outputtype = dict (),
2631 terminal_output = dict (
2732 deprecated = '1.0.0' ,
2833 nohash = True ,
Original file line number Diff line number Diff line change @@ -1511,7 +1511,7 @@ def _list_outputs(self):
15111511 return outputs
15121512
15131513
1514- class NwarpAdjustInputSpec (CommandLineInputSpec ):
1514+ class NwarpAdjustInputSpec (AFNICommandInputSpec ):
15151515 warps = InputMultiPath (
15161516 File (exists = True ),
15171517 minlen = 5 ,
@@ -1569,17 +1569,9 @@ def _parse_inputs(self, skip=None):
15691569 skip += ['out_file' ]
15701570 return super (NwarpAdjust , self )._parse_inputs (skip = skip )
15711571
1572- def _gen_filename (self , name ):
1573- if name == 'out_file' :
1574- return self ._list_outputs ()[name ]
1575- return None
1576-
15771572 def _list_outputs (self ):
15781573 outputs = self .output_spec ().get ()
15791574
1580- if self .inputs .out_file :
1581- outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
1582-
15831575 if self .inputs .in_files :
15841576 if self .inputs .out_file :
15851577 outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
@@ -1591,7 +1583,6 @@ def _list_outputs(self):
15911583 ext = ext2 + ext
15921584 outputs ['out_file' ] = os .path .abspath (
15931585 basename_noext + '_NwarpAdjust' + ext )
1594-
15951586 return outputs
15961587
15971588
You can’t perform that action at this time.
0 commit comments