Skip to content

afni.preprocess.TCorrMap is failing. #1681

Open
@tsalo

Description

@tsalo

Running the cmdline doctest raises an error.

OS: OS X El Capitan 10.11.6
Nipype version: Up-to-date with master
No tools are installed, but this should just be an issue with the argument parsing in _format_arg().

from nipype.interfaces import afni
tcm = afni.TCorrMap()
tcm.inputs.in_file = 'functional.nii'
tcm.inputs.mask = 'mask.nii'
tcm.mean_file = 'functional_meancorr.nii'
tcm.cmdline

Traceback (most recent call last):

  File "<ipython-input-4-76b6d542a4b3>", line 6, in <module>
    tcm.cmdline

  File "/Users/salo/Desktop/tsalo/nipype/nipype/interfaces/base.py", line 1678, in cmdline
    allargs = self._parse_inputs()

  File "/Users/salo/Desktop/tsalo/nipype/nipype/interfaces/base.py", line 1915, in _parse_inputs
    arg = self._format_arg(name, spec, value)

  File "/Users/salo/Desktop/tsalo/nipype/nipype/interfaces/afni/preprocess.py", line 2049, in _format_arg
    return trait_spec.argstr % self.inputs.thresholds + [value]

TypeError: a float is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions