cortex-lab / cortex-lab/phylib
error getting n_spikes from get_cluster_spike_waveforms
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 16
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
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:
Any advice on how to fix this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the call to model.get_cluster_spike_waveforms(cluster_id) with cluster IDs that trigger the assertion, then inspect the assertion and the returned waveform shape. Trace the method's handling of clusters with few spikes; done means identifying the cause and either correcting the behavior or documenting the required input and a reliable way to filter those clusters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100