File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -2198,7 +2198,10 @@ class ResampleInputSpec(CommandLineInputSpec):
2198
2198
desc = 'output file' ,
2199
2199
genfile = True ,
2200
2200
argstr = '%s' ,
2201
- position = - 1 ,)
2201
+ position = - 1 ,
2202
+ name_source = ['input_file' ],
2203
+ hash_files = False ,
2204
+ name_template = '%s_resample.mnc' )
2202
2205
2203
2206
# This is a dummy input.
2204
2207
input_grid_files = InputMultiPath (
@@ -2574,26 +2577,6 @@ class Resample(StdOutCommandLine):
2574
2577
output_spec = ResampleOutputSpec
2575
2578
_cmd = 'mincresample'
2576
2579
2577
- def _gen_filename (self , name ):
2578
- if name == 'output_file' :
2579
- output_file = self .inputs .output_file
2580
-
2581
- if isdefined (output_file ):
2582
- return os .path .abspath (output_file )
2583
- else :
2584
- return aggregate_filename (
2585
- [self .inputs .input_file ], 'mincresample_output' )
2586
- else :
2587
- raise NotImplemented
2588
-
2589
- def _gen_outfilename (self ):
2590
- return self ._gen_filename ('output_file' )
2591
-
2592
- def _list_outputs (self ):
2593
- outputs = self .output_spec ().get ()
2594
- outputs ['output_file' ] = os .path .abspath (self ._gen_outfilename ())
2595
- return outputs
2596
-
2597
2580
2598
2581
class NormInputSpec (CommandLineInputSpec ):
2599
2582
"""
You can’t perform that action at this time.
0 commit comments