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

Single template #30

Open
yagui opened this issue Jan 28, 2021 · 0 comments
Open

Single template #30

yagui opened this issue Jan 28, 2021 · 0 comments

Comments

@yagui
Copy link

yagui commented Jan 28, 2021

Hi,

I used spyking-circus to "sort" a single unit which gave me a single template.
I was having trouble to load this dataset into phy and I tracked down the problem to this line

return read_array(path, mmap_mode=mmap_mode).squeeze()

The problem arise because read_array returns an array of shape (1,91,4) and then the squeeze method changes it to just (91,4).
And then this line gives the error

assert cols.shape == (n_templates, n_channels_loc)

just after 'Loading templates' and 'Templates are sparse'

I tried exportingfrom spyking-circus to phy without sparse matrices and now it fails in this line

assert self.similar_templates.shape == (self.n_templates, self.n_templates)

after 'Loading the inverse of the whitening matrix.'

If I remove the 'squeze' I can load this dataset of only one template, and also I didn't have problems with any other dataset sorted with spyking-circus, but I can not load anymore datasets sorted with kilosort2.5.
With kilosort output it fails in this line, just after 'Start capturing exceptions'

assert samples.ndim == times.ndim == 1

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

No branches or pull requests

1 participant