My guess is: as inputs to you level1design you have a mask_image and also a custom spm_mat_dir? If so, a temporary SPM.mat file is created in the initial working folder of MATLAB. If you change the spm_mat_dir input, it will not find this SPM.mat file anymore.
I created a workaround (in the thread at github) for the time being.
Thank you.
I’m not sure if we have the same issue or not.
I’m able to run if smoothly and only encounter problems when I try to add regressors to the info file (using Bunch). I take the regressors from fmriprep pipeline and I think there might be some issues around that.
OK.
I have solved the issue. And I think the error message is misleading.
The issue was associated with the fact the the Bunch object was array and not an array of lists (when I added the confounds).
After changing that it ran without a problem.
I think it might be a good idea to change the error message (something like - ‘unfit data’ or else).