cortex-lab / phylib

Lightweight electrophysiological data analysis library
BSD 3-Clause "New" or "Revised" License
11 stars 23 forks source link

error getting n_spikes from get_cluster_spike_waveforms #42

Open jennifertsai opened 8 months ago

jennifertsai commented 8 months ago

Hi! I am trying to write some code to filter out low n_spikes in my phy input data. I have tried this following code: waveforms = model.get_cluster_spike_waveforms(cluster_id) n_spikes, n_samples, n_channels_loc = waveforms.shape

This works for most cluster_ids, but there are a few cluster_ids where I keep getting this assertion error:

image

Any advice on how to fix this?