@@ -2093,7 +2093,7 @@ class Means(AFNICommand):
2093
2093
output_spec = AFNICommandOutputSpec
2094
2094
2095
2095
2096
- class HistogramInputSpec (CommandLineInputSpec ):
2096
+ class HistInputSpec (CommandLineInputSpec ):
2097
2097
in_file = File (
2098
2098
desc = 'input file to 3dHist' , argstr = '-input %s' , position = 1 , mandatory = True ,
2099
2099
exists = True , copyfile = False )
@@ -2111,12 +2111,12 @@ class HistogramInputSpec(CommandLineInputSpec):
2111
2111
min_value = traits .Float (argstr = '-min %f' , desc = 'minimum intensity value' )
2112
2112
bin_width = traits .Float (argstr = '-binwidth %f' , desc = 'bin width' )
2113
2113
2114
- class HistogramOutputSpec (TraitedSpec ):
2114
+ class HistOutputSpec (TraitedSpec ):
2115
2115
out_file = File (desc = 'output file' , exists = True )
2116
2116
out_show = File (desc = 'output visual histogram' )
2117
2117
2118
2118
2119
- class Histogram (CommandLine ):
2119
+ class Hist (CommandLine ):
2120
2120
"""Computes average of all voxels in the input dataset
2121
2121
which satisfy the criterion in the options list
2122
2122
@@ -2127,7 +2127,7 @@ class Histogram(CommandLine):
2127
2127
========
2128
2128
2129
2129
>>> from nipype.interfaces import afni as afni
2130
- >>> hist = afni.Histogram ()
2130
+ >>> hist = afni.Hist ()
2131
2131
>>> hist.inputs.in_file = 'functional.nii'
2132
2132
>>> hist.cmdline
2133
2133
'3dHist -input functional.nii -prefix functional_hist'
@@ -2136,19 +2136,19 @@ class Histogram(CommandLine):
2136
2136
"""
2137
2137
2138
2138
_cmd = '3dHist'
2139
- input_spec = HistogramInputSpec
2140
- output_spec = HistogramOutputSpec
2139
+ input_spec = HistInputSpec
2140
+ output_spec = HistOutputSpec
2141
2141
2142
2142
def _parse_inputs (self , skip = None ):
2143
2143
if not self .inputs .showhist :
2144
2144
if skip is None :
2145
2145
skip = []
2146
2146
skip += ['out_show' ]
2147
- return super (Histogram , self )._parse_inputs (skip = skip )
2147
+ return super (Hist , self )._parse_inputs (skip = skip )
2148
2148
2149
2149
2150
2150
def _list_outputs (self ):
2151
- outputs = super (Histogram , self )._list_outputs ()
2151
+ outputs = super (Hist , self )._list_outputs ()
2152
2152
outputs ['out_file' ] += '.niml.hist'
2153
2153
if not self .inputs .showhist :
2154
2154
outputs ['out_show' ] = Undefined
0 commit comments