-
Notifications
You must be signed in to change notification settings - Fork 532
afni.preprocess.TCorrMap is failing. #1681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for the delay. I just updated my fork and tested it, but I'm still getting the same error: Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/tsalo/Documents/tsalo/nipype/nipype/interfaces/base.py", line 1678, in cmdline
allargs = self._parse_inputs()
File "/Users/tsalo/Documents/tsalo/nipype/nipype/interfaces/base.py", line 1915, in _parse_inputs
arg = self._format_arg(name, spec, value)
File "/Users/tsalo/Documents/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 |
@tsalo - looks like this interface needs to be fixed. there is nothing that allows the user to choose what threshold method should be used. nipype/nipype/interfaces/afni/preprocess.py Line 1952 in 86cd8ff
do you have some practical command lines for this interface from afni? |
@satra - I don't actually have any experience with 3dTCorrMap. I came across the error when I was just trying to clean up the doctests and understand why some were being skipped in the AFNI interface. I can look into it though. |
@adamkimbler and I have been trying to figure out why this is breaking, but so far we've been unable to do so. It looks like Since the different threshold options require different numbers of floats, we considered dropping Neither of us has any working |
Is this still an issue? @tsalo |
@effigies I pulled the most recent nipype/nipype docker image and tried out the doctest, but it still failed (although with a new error). The doctest: from nipype.interfaces import afni
tcm = afni.TCorrMap()
tcm.inputs.in_file = 'functional.nii'
tcm.inputs.mask = 'mask.nii'
tcm.inputs.mean_file = 'functional_meancorr.nii'
tcm.cmdline The error: Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/src/nipype/nipype/interfaces/base/core.py", line 929, in cmdline
allargs = [self.cmd] + self._parse_inputs()
File "/src/nipype/nipype/interfaces/base/core.py", line 1166, in _parse_inputs
arg = self._format_arg(name, spec, value)
File "/src/nipype/nipype/interfaces/afni/preprocess.py", line 2284, in _format_arg
return trait_spec.argstr % self.inputs.thresholds + [value]
TypeError: must be real number, not _Undefined |
Uh oh!
There was an error while loading. Please reload this page.
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().
The text was updated successfully, but these errors were encountered: