-
Notifications
You must be signed in to change notification settings - Fork 279
Description
Describe the issue:
Hi,
I try to get the template waveform of a cluster both from the new cluster_templates function and the original templates.npy. I notice the waveform returned by both are vastly different from each others:
I understand that the results from cluster_templates are scaled according to the spike amplitude, but even the best channel calculated within the cluster_templates() is different from the results from get_best_channels()
Upon looking closer, I notice that in
Kilosort/kilosort/data_tools.py
Lines 149 to 150 in db107d7
| spike_idx = spike_clusters[spike_clusters == cluster_id] | |
| temps = get_templates(spike_idx, results_dir) |
The spike_idx refers to a list of cluster id, but in
Kilosort/kilosort/data_tools.py
Line 185 in db107d7
| template_idx = spike_templates[spike_idx] |
spike_idx actually refers to the index of detected spikes.
Is there a potential issue there?
Reproduce the bug:
Error message:
Version information:
4.0.27
