cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
304 stars 155 forks source link

Can not use registration #1235

Closed WWL606 closed 7 months ago

WWL606 commented 7 months ago

Hi,

I am using kilosort3. There is no error when 'N blocks for registration' on GUI is 0. But when it is not zero , I get the following error message:

Error using gpuArray/subsref
Subscript indices must either be real positive integers or logicals.

Error in extractTemplatesfromSnippets (line 56)
wTEMP = dd(:, round(linspace(1, size(dd,2), nPCs)));

Error in extract_spikes (line 42)
[wTEMP, wPCA]    = extractTemplatesfromSnippets(rez, NrankPC);

Error in ksGUI/runSpikesort (line 795)
                [obj.rez, st3, tF]     = extract_spikes(obj.rez);

Error in ksGUI>@(~,~)obj.runSpikesort() (line 339)
                'Callback', @(~,~)obj.runSpikesort());

Error while evaluating UIControl Callback.

Any help is appreciated!

Thanks, Wenliang