Skip to content

Commit 2e2f487

Browse files
author
Oscar Esteban
committed
renamed afni.Histogram to afni.Hist
1 parent 4d0ab57 commit 2e2f487

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ class Means(AFNICommand):
20932093
output_spec = AFNICommandOutputSpec
20942094

20952095

2096-
class HistogramInputSpec(CommandLineInputSpec):
2096+
class HistInputSpec(CommandLineInputSpec):
20972097
in_file = File(
20982098
desc='input file to 3dHist', argstr='-input %s', position=1, mandatory=True,
20992099
exists=True, copyfile=False)
@@ -2111,12 +2111,12 @@ class HistogramInputSpec(CommandLineInputSpec):
21112111
min_value = traits.Float(argstr='-min %f', desc='minimum intensity value')
21122112
bin_width = traits.Float(argstr='-binwidth %f', desc='bin width')
21132113

2114-
class HistogramOutputSpec(TraitedSpec):
2114+
class HistOutputSpec(TraitedSpec):
21152115
out_file = File(desc='output file', exists=True)
21162116
out_show = File(desc='output visual histogram')
21172117

21182118

2119-
class Histogram(CommandLine):
2119+
class Hist(CommandLine):
21202120
"""Computes average of all voxels in the input dataset
21212121
which satisfy the criterion in the options list
21222122
@@ -2127,7 +2127,7 @@ class Histogram(CommandLine):
21272127
========
21282128
21292129
>>> from nipype.interfaces import afni as afni
2130-
>>> hist = afni.Histogram()
2130+
>>> hist = afni.Hist()
21312131
>>> hist.inputs.in_file = 'functional.nii'
21322132
>>> hist.cmdline
21332133
'3dHist -input functional.nii -prefix functional_hist'
@@ -2136,19 +2136,19 @@ class Histogram(CommandLine):
21362136
"""
21372137

21382138
_cmd = '3dHist'
2139-
input_spec = HistogramInputSpec
2140-
output_spec = HistogramOutputSpec
2139+
input_spec = HistInputSpec
2140+
output_spec = HistOutputSpec
21412141

21422142
def _parse_inputs(self, skip=None):
21432143
if not self.inputs.showhist:
21442144
if skip is None:
21452145
skip = []
21462146
skip += ['out_show']
2147-
return super(Histogram, self)._parse_inputs(skip=skip)
2147+
return super(Hist, self)._parse_inputs(skip=skip)
21482148

21492149

21502150
def _list_outputs(self):
2151-
outputs = super(Histogram, self)._list_outputs()
2151+
outputs = super(Hist, self)._list_outputs()
21522152
outputs['out_file'] += '.niml.hist'
21532153
if not self.inputs.showhist:
21542154
outputs['out_show'] = Undefined

0 commit comments

Comments
 (0)