Skip to content

Commit

Permalink
fix keep_list
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Nov 27, 2023
1 parent bbd4175 commit ff7c5b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spikeanalysis/spike_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ def plot_raster(
window: Union[list, list[list]],
show_stim: bool = True,
include_ids: list | np.nadarry | None = None,
sorted: bool = False,
):
"""
Function to plot rasters
Expand Down Expand Up @@ -397,7 +396,7 @@ def plot_raster(
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)

for idx, stimulus in enumerate(psths.keys()):
bins = psths[stimulus]["bins"]
Expand Down

0 comments on commit ff7c5b1

Please sign in to comment.