Dan
unread,Aug 22, 2012, 11:12:02 AM8/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nipy...@googlegroups.com
Hello,
I'm getting an error using mcflirt when setting the boolean inputs to False (any of the inputs save_plots, save_rms, save_imgs, or save_mats causes this error). If I set the input to True, it runs without a problem, or if I don't specify the inputs at all. Here is the traceback of the error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nipype/pipeline/plugins/linear.py", line 37, in run
node.run(updatehash=updatehash)
File "/usr/local/lib/python2.7/dist-packages/nipype/pipeline/engine.py", line 1128, in run
self._run_interface()
File "/usr/local/lib/python2.7/dist-packages/nipype/pipeline/engine.py", line 1226, in _run_interface
self._result = self._run_command(execute)
File "/usr/local/lib/python2.7/dist-packages/nipype/pipeline/engine.py", line 1340, in _run_command
cmd = self._interface.cmdline
File "/usr/local/lib/python2.7/dist-packages/nipype/interfaces/base.py", line 1047, in cmdline
allargs = self._parse_inputs()
File "/usr/local/lib/python2.7/dist-packages/nipype/interfaces/base.py", line 1199, in _parse_inputs
arg = self._format_arg(name, spec, value)
File "/usr/local/lib/python2.7/dist-packages/nipype/interfaces/fsl/preprocess.py", line 582, in _format_arg
return super(MCFLIRT, self)._format_arg(name, spec, value)
File "/usr/local/lib/python2.7/dist-packages/nipype/interfaces/base.py", line 1144, in _format_arg
raise ValueError(msg)
ValueError: Object '<nipype.interfaces.fsl.preprocess.MCFLIRT object at 0x53f9c90>' attempting to format argument string for attr 'None' with value 'False'.
Here is how I build my node:
mcflirt = pe.Node(interface=fsl.MCFLIRT(), name='mcflirt')
mcflirt.inputs.save_plots = True
mcflirt.inputs.save_rms = True
mcflirt.inputs.save_mats = False
mcflirt.inputs.stats_imgs = False
mcflirt.inputs.output_type = 'NIFTI'
I suppose I can omit the lines that say False, but that would just be a work-around.
Thanks,
Dan