Computational toolbox for large scale Calcium Imaging Analysis, including movie handling, motion correction, source extraction, spike deconvolution and result visualization.
Fixes bug pointed out by @rcalfredson and implements fix suggested by @j-friedrich in discussion #1190
Type of change
[X] Bug fix (non-breaking change which fixes an issue)
Has your PR been tested?
caimanmanager test passes.
I ran:
np.allclose(corr_im_local, corr_im_fft, rtol=1e-05, atol=1e-05, equal_nan=True)
Where corr_im_local is the output of the buggy function cm.local_correlations(), and corr_im_fft is the output of the more canonical fft-based correlation function cm.summary_images.local_correlations_fft()
until it came back True.
I haven't added this to the test suite. It might be a good idea though.
Description
Fixes bug pointed out by @rcalfredson and implements fix suggested by @j-friedrich in discussion #1190
Type of change
Has your PR been tested?
caimanmanager test
passes.I ran:
np.allclose(corr_im_local, corr_im_fft, rtol=1e-05, atol=1e-05, equal_nan=True)
Where
corr_im_local
is the output of the buggy functioncm.local_correlations()
, andcorr_im_fft
is the output of the more canonical fft-based correlation functioncm.summary_images.local_correlations_fft()
until it came back
True
.I haven't added this to the test suite. It might be a good idea though.