Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit handling of no-spikes during curation #1154

Open
CBroz1 opened this issue Oct 4, 2024 · 0 comments
Open

Explicit handling of no-spikes during curation #1154

CBroz1 opened this issue Oct 4, 2024 · 0 comments

Comments

@CBroz1
Copy link
Member

CBroz1 commented Oct 4, 2024

The extraction notebooks use try/except to skip instances of no units found.

The notebook:

for sorting_id in sorting_ids:
try:
sgs.CurationV1.insert_curation(sorting_id=sorting_id)
except KeyError as e:
pass

This KeyError is potentially thrown by the process that looks for spike times in the units object:

units_dict = {
unit_id: spike_times
for unit_id, spike_times in zip(units.index, units["spike_times"])
}

Instead of using a KeyError to handle this case, we should either handle the null entry (i.e., #849) or raise a more specific error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant