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

demo_3d.m throws error at update_spatial_components #55

Closed aandreev0 closed 7 years ago

aandreev0 commented 7 years ago

When running demo_3D.m I get error:

found 200 out of 200 neurons..
Refining initial estimates with HALS...Starting parallel pool (parpool) using the 'local' profile ... connected to 12 workers.
  done 

ans =

    0.2812    0.9953

Error using update_spatial_components (line 79)
When using options.spatial_method = regularized pass [A,b] as an
input and not just A

Error in demo_3D (line 61)
[A,b,Cin] = update_spatial_components(Yr,Cin,fin,Ain,P,options);

MATLAB R2015b, Win7

epnev commented 7 years ago

Thanks @aandreev0
When you call the function update_spatial_components you need to replace input argument Ain with [Ain,bin]. This is now fixed in the demo_3D script

aandreev0 commented 7 years ago

thanks for fixing. As I familiarize myself with codebase maybe will be able to contribute not just file bugs

epnev commented 7 years ago

you're welcome, and feel free to ask more questions and/or contribute!