Skip to content

Single template #30

Open
Open
@yagui

Description

@yagui

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions