From 1a47ba0022abcefd0b434830a682f74d194e3f9a Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Mon, 27 Nov 2023 11:17:13 -0500 Subject: [PATCH] fix keep_list in sm_fr --- src/spikeanalysis/spike_plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeanalysis/spike_plotter.py b/src/spikeanalysis/spike_plotter.py index 85cf1b7..9269f0e 100644 --- a/src/spikeanalysis/spike_plotter.py +++ b/src/spikeanalysis/spike_plotter.py @@ -528,7 +528,7 @@ def plot_sm_fr( keep_list.append(np.where(cluster_indices == cid)[0][0]) keep_list = np.array(keep_list) else: - keep_list = np.arange(0, len(cluster_indices), 1) + keep_list = np.arange(0, len(self.data.cluster_ids), 1) stim_trial_groups = self._get_trial_groups() event_lengths = self._get_event_lengths_all()