cortex-lab / cortex-lab/phylib

error getting n_spikes from get_cluster_spike_waveforms

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

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:

image

Any advice on how to fix this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.