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

[Bug report] - Reshape error on ephys data load #357

Closed
k1o0 opened this issue Jan 17, 2024 · 1 comment
Closed

[Bug report] - Reshape error on ephys data load #357

k1o0 opened this issue Jan 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@k1o0
Copy link
Contributor

k1o0 commented Jan 17, 2024

Many datasets on OpenAlyx can't be loaded as the size/shape in the numpy file appears to be incorrect:

from one.api import ONE
one_ibl = ONE(base_url='https://openalyx.internationalbrainlab.org')
one = ONE()
eid = '3a3ea015-b5f4-4e8b-b189-9364d1fc7435'
collection = 'alf/probe00a/pykilosort'
spike_wfs = one.load_object(eid, '_phy_spikes_subset', collection=collection)

produces ValueError: cannot reshape array of size 2436384 into shape (1857,82,32).
The offending file is NR_0029/2023-09-07/001/alf/probe00a/pykilosort/_phy_spikes_subset.waveforms.npy

@k1o0 k1o0 added the bug Something isn't working label Jan 17, 2024
@k1o0
Copy link
Contributor Author

k1o0 commented Jan 17, 2024

The plan is to reproduce the error, determine if it's exclusive to NP2, and report issue to Phy, which generates this dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants