Skip to content

Commit

Permalink
reverting bug introduced with 64bd9fe
Browse files Browse the repository at this point in the history
  • Loading branch information
epnev committed Aug 21, 2019
1 parent db61bfb commit 4229b12
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions caiman/source_extraction/cnmf/estimates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,9 +1310,12 @@ def remove_duplicates(self, predictions=None, r_values=None, dist_thr=0.1,
else:
components_to_keep = np.arange(self.A.shape[-1])



self.select_components(idx_components=components_to_keep)
if self.idx_components is None:
self.idx_components = np.arange(self.A.shape[-1])
self.idx_components = np.intersect1d(self.idx_components, components_to_keep)
self.idx_components_bad = np.setdiff1d(np.arange(self.A.shape[-1]), self.idx_components)
if select_comp:
self.select_components(use_object=True)

return components_to_keep

Expand Down

0 comments on commit 4229b12

Please sign in to comment.