I did not follow
I guess traits.Bool should be for ThreedBrickStatInputSpec
the input spec that I wrote:
class ThreedBrickStatInputSpec(AFNITraitedSpec):
in_file = File(desc = 'input file to 3dmaskave',
argstr = '%s',
position = -1,
mandatory = True,
exists = True)
min_val = traits.Bool(desc = 'output min val',
argstr = '',
position = 3,
mandatory = True)
mask = File(desc = '-mask dset = use dset as mask to include/
exclude voxe
ls',
argstr = '-mask %s',
position = 2)
min = traits.Bool(desc = 'print the minimum value in dataset',
argstr = '-min',
position = 1)
The output spec :
class ThreedBrickStatOutputSpec(AFNITraitedSpec):
min_val = traits.Float(desc = 'output')
class ThreedBrickStat(AFNICommand):
"""
For complete details, see the `3dmaskave Documentation.
<
http://afni.nimh.nih.gov/pub/dist/doc/program_help/3dmaskave.html>`_
"""
_cmd = '3dBrickStat'
input_spec = ThreedMaskaveInputSpec
output_spec = ThreedMaskaveOutputSpec
def _list_outputs(self):
outputs = self.output_spec().get()
outputs['min_val'] =??????
return outputs
I am not able to figure out "outputs['min_val'] = ?" ,
Thanks,
sharad