flatironinstitute / CaImAn-MATLAB

Complete Matlab pipeline for large scale calcium imaging data analysis
GNU General Public License v2.0
252 stars 147 forks source link

run_CNMF_patches indices compatibility #112

Open hyewkim opened 3 years ago

hyewkim commented 3 years ago

Hello, I ran into an error when combining the results after running CNMF on each patch. The error messages is replicated below:

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

Error in run_CNMF_patches (line 156) B(patch_lin_idx,i) = RESULTS(i).b;

Error in run_pipeline (line 166) [A,b,C,f,S,P,RESULTS,YrA] = run_CNMF_patches(Y,K,patches,tau,0,options);

Because of the parfor, it seems I cannot debug the code at this line. Is there a way to figure what's going wrong here?

Thank you so much in advance for your time and help!