nipype.interfaces.matlab.MatlacCommand use with MCR issue

If I set the uses_mcr=True , I get the foll. error. even if I set the nodesktop=False

OSError: Input “uses_mcr” is mutually exclusive with input “nodesktop”, which is already set

I saw a post on nipy users group about the same issue, but could not find a solution yet. Can someone help .

Hi Sandeep,

Had the same issue, try the following:

from nipype.interfaces.base import Undefined
import nipype.interfaces.matlab as Matlab

matlab = Matlab.MatlabCommand()
matlab.inputs.nodesktop = Undefined
matlab.inputs.nosplash = Undefined
matlab.inputs.uses_mcr = True