Print

Print


Dear Laura,

which version of the SPM standalone are you using? If using the latest (r6685), could you try again with an earlier version (that you can find in the "previous" folder of where you got your current copy)?
Also, it would be useful if you could send me the M-files nipype generated - I can think of one issue with mfilename that would generate the error you received.

Best regards,
Guillaume.

________________________________________
From: SPM (Statistical Parametric Mapping) <[log in to unmask]> on behalf of Laura N. G. <[log in to unmask]>
Sent: 20 January 2016 12:03
To: [log in to unmask]
Subject: [SPM] SPM12 and nipype

Hello,

      I'm trying to use the node "Coregister" of nipype with SPM12 standalone. It starts and launchs the matlab runtime with SPM12 and generates the pyscript.m and pyscript_coregister.m but fails with the next error:

Standard error:
Error using fprintf
Function is not defined for 'function_handle' inputs.

Error in spm (line 1201)



Error in spm_standalone (line 44)



MATLAB:printf:invalidInputType

Return code: 255
Interface MatlabCommand failed to run.
Interface Coregister failed to run.


However, when I launch pyscript_coregister.m from MATLAB and SPM12, it runs correctly.
Could someone help me?

Thanks.
Laura.