Skip to content

Commit

Permalink
Fix unbound local error in online_cnmf
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbb committed Aug 9, 2024
1 parent cd61a86 commit 61fff86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caiman/source_extraction/cnmf/online_cnmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def _prepare_object(self, Yr, T, new_dims=None, idx_components=None):

if self.is1p:
estim = self.estimates
d1, d2 = estim.dims
estim.Yres_buf -= estim.b0
if ssub_B == 1:
estim.Atb = estim.Ab.T.dot(estim.W.dot(estim.b0) - estim.b0)
Expand Down Expand Up @@ -389,6 +388,7 @@ def get_indices_of_pixels_on_ring(self, pixel):
else:
Yres -= estim.upscale_matrix.dot(estim.W.dot(
estim.downscale_matrix.dot(Yres)))
d1, d2 = self.estimates.dims
Yres = Yres.reshape((d1, d2, -1), order='F')

(self.estimates.first_moment, self.estimates.second_moment,
Expand Down

0 comments on commit 61fff86

Please sign in to comment.