from pathlib import Path
import spikeinterface.full as si
import matplotlib.pyplot as plt
%matplotlib widget
si.set_global_job_kwargs(n_jobs=0.5, chunk_duration="1s", progress_bar=True)4 Spike Sorting
This is a practical guide to running sorters and computing properties of them. Find out more information about the theory behind spike sorting by looking at the spike sorting presentation slides.
In this chapter we will run spike sorting on a preprocessed recording, compare the output of different sorters, and get familiar with the Sorting object that sorter returns. Morever, we will create a SortingAnalyzer object and compute additional extensions to get ready for curation.
We will use the same short example dataset as before: a 90 second slice of a 64-channel recording, downloaded from DANDI and saved locally in binary format.
Let’s get started!
4.1 Data loading and preprocessing
Then, we reload the preprocessed data. If they are not available, we load recording and quickly apply the preprocessing chain (bandpass filter + common median reference) covered in the previous chapter.
PREPROCESSED_DATA_FOLDER = Path("data/preprocessed-dandiset-000939")
recording_preprocessed = si.load(PREPROCESSED_DATA_FOLDER)
print(recording_preprocessed)
si.plot_traces(recording_preprocessed, mode="map", time_range=(49, 49.02))BinaryFolderRecording: 58 channels - 20.0kHz - 1 segments - 1,800,000 samples
90.00s (1.50 minutes) - int16 dtype - 199.13 MiB
<spikeinterface.widgets.traces.TracesWidget at 0x7f35103946d0>
4.2 Check installation
We can now run spike sorting on the preprocessed recording. There are many spike sorters available in SpikeInterface, and part of what makes the package so useful is that it makes it easy to interchangeably run different sorters using the same, simple interface.
Let’s first check which sorters are known to SpikeInterface, and which are actually installed in the current Python environment.
print(f"{si.available_sorters()=}")
print(f"{si.installed_sorters()=}")si.available_sorters()=['combinato', 'dartsort', 'hdsort', 'herdingspikes', 'ironclust', 'kilosort', 'kilosort2', 'kilosort2_5', 'kilosort3', 'kilosort4', 'lupin', 'mountainsort4', 'mountainsort5', 'pykilosort', 'rtsort', 'simple', 'spykingcircus', 'spykingcircus2', 'tridesclous', 'tridesclous2', 'waveclus', 'waveclus_snippets', 'yass']
si.installed_sorters()=['kilosort4', 'lupin', 'simple', 'spykingcircus2', 'tridesclous2']
Most external sorters (e.g. Kilosort, Ironclust, Mountainsort…) need to be installed separately (they are usually written in Matlab or as standalone packages) before they can be used from SpikeInterface. Kilosort 4, however, is pure Python and installs like any other package, which is why it shows up as installed above.
The spikeinterface.sortingcomponents module also includes building blocks that can be combined into fully-fledged, SpikeInterface-native spike sorters. This module is still experimental and under heavy development, but there are already three sorters built entirely on top of it:
lupin, a sorter developed by the SpikeInterface teamtridesclous2(developed by Samuel Garcia)spykingcircus2(developed by Pierre Yger)simple, a minimal sorter intended only for demos and teaching
Because they are pure SpikeInterface code, these sorters never require any additional installation, and are run with the exact same run_sorter function as any other sorter.
4.3 Run a sorter installed locally
This runs a sorter that is installed in the current Python environment. We’ll start with Kilosort 4.
We can check the default parameters for any sorter with get_default_sorter_params:
si.get_default_sorter_params("kilosort4"){'batch_size': 60000,
'nblocks': 1,
'Th_universal': 9,
'Th_learned': 8,
'nt': 61,
'shift': None,
'scale': None,
'batch_downsampling': 1,
'artifact_threshold': inf,
'nskip': 25,
'whitening_range': 32,
'highpass_cutoff': 300,
'binning_depth': 5,
'sig_interp': 20,
'drift_smoothing': [0.5, 0.5, 0.5],
'nt0min': None,
'dmin': None,
'dminx': 32,
'min_template_size': 10,
'template_sizes': 5,
'nearest_chans': 10,
'nearest_templates': 100,
'max_channel_distance': 32,
'max_peels': 100,
'templates_from_data': True,
'n_templates': 6,
'n_pcs': 6,
'Th_single_ch': 6,
'acg_threshold': 0.2,
'ccg_threshold': 0.25,
'cluster_neighbors': 10,
'cluster_downsampling': 20,
'max_cluster_subset': 25000,
'x_centers': None,
'cluster_init_seed': 5,
'duplicate_spike_ms': 0.25,
'position_limit': 100,
'do_CAR': True,
'invert_sign': False,
'save_extra_vars': False,
'save_preprocessed_copy': False,
'torch_device': 'auto',
'bad_channels': None,
'clear_cache': False,
'do_correction': True,
'skip_kilosort_preprocessing': False,
'keep_good_only': False,
'use_binary_file': True,
'delete_recording_dat': True,
'pool_engine': 'process',
'n_jobs': 0.5,
'chunk_duration': '1s',
'progress_bar': True,
'mp_context': None,
'max_threads_per_worker': 1}
Because we have already bandpass filtered and common-referenced the data ourselves, and our recording is very short, we turn off Kilosort’s drift correction:
sorter_params = {"do_correction": False}
sorting_KS4 = si.run_sorter(
"kilosort4",
recording_preprocessed,
folder="results/sorter_KS4",
remove_existing_folder=True,
verbose=True,
**sorter_params
)kilosort.run_kilosort:
kilosort.run_kilosort: Computing preprocessing variables.
kilosort.run_kilosort: ----------------------------------------
kilosort.run_kilosort: N samples: 1800000
kilosort.run_kilosort: N seconds: 90.0
kilosort.run_kilosort: N batches: 30
kilosort.run_kilosort: Preprocessing filters computed in 0.24s; total 0.24s
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after preprocessing
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 51.20 %
kilosort.run_kilosort: Mem used: 11.70 % | 1.83 GB
kilosort.run_kilosort: Mem avail: 13.79 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort:
kilosort.run_kilosort: Computing drift correction.
kilosort.run_kilosort: ----------------------------------------
kilosort.datashift: nblocks = 0, skipping drift correction
kilosort.run_kilosort: drift computed in 0.00s; total 0.35s
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after drift correction
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 0.00 %
kilosort.run_kilosort: Mem used: 11.70 % | 1.83 GB
kilosort.run_kilosort: Mem avail: 13.79 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort:
kilosort.run_kilosort: Extracting spikes using templates
kilosort.run_kilosort: ----------------------------------------
kilosort.spikedetect: Re-computing universal templates from data.
Skipping drift correction.
kilosort.spikedetect: Number of universal templates: 246
kilosort.spikedetect: Detecting spikes...
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:04<02:01, 4.19s/it]
7%|▋ | 2/30 [00:08<01:56, 4.17s/it]
10%|█ | 3/30 [00:12<01:52, 4.17s/it]
13%|█▎ | 4/30 [00:16<01:48, 4.16s/it]
17%|█▋ | 5/30 [00:20<01:43, 4.15s/it]
20%|██ | 6/30 [00:24<01:39, 4.15s/it]
23%|██▎ | 7/30 [00:29<01:35, 4.16s/it]
27%|██▋ | 8/30 [00:33<01:31, 4.16s/it]
30%|███ | 9/30 [00:37<01:27, 4.16s/it]
33%|███▎ | 10/30 [00:41<01:23, 4.17s/it]
37%|███▋ | 11/30 [00:45<01:19, 4.16s/it]
40%|████ | 12/30 [00:49<01:15, 4.17s/it]
43%|████▎ | 13/30 [00:54<01:10, 4.17s/it]
47%|████▋ | 14/30 [00:58<01:06, 4.17s/it]
50%|█████ | 15/30 [01:02<01:02, 4.17s/it]
53%|█████▎ | 16/30 [01:06<00:58, 4.16s/it]
57%|█████▋ | 17/30 [01:10<00:54, 4.16s/it]
60%|██████ | 18/30 [01:14<00:49, 4.17s/it]
63%|██████▎ | 19/30 [01:19<00:45, 4.18s/it]
67%|██████▋ | 20/30 [01:23<00:41, 4.18s/it]
70%|███████ | 21/30 [01:27<00:37, 4.18s/it]
73%|███████▎ | 22/30 [01:31<00:33, 4.18s/it]
77%|███████▋ | 23/30 [01:35<00:29, 4.18s/it]
80%|████████ | 24/30 [01:40<00:25, 4.18s/it]
83%|████████▎ | 25/30 [01:44<00:20, 4.17s/it]
87%|████████▋ | 26/30 [01:48<00:16, 4.18s/it]
90%|█████████ | 27/30 [01:52<00:12, 4.18s/it]
93%|█████████▎| 28/30 [01:56<00:08, 4.18s/it]
97%|█████████▋| 29/30 [02:01<00:04, 4.20s/it]
100%|██████████| 30/30 [02:05<00:00, 4.19s/it]
100%|██████████| 30/30 [02:05<00:00, 4.17s/it]
kilosort.run_kilosort: 39391 spikes extracted in 129.40s; total 129.75s
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after spike detect (univ)
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 0.00 %
kilosort.run_kilosort: Mem used: 13.30 % | 2.07 GB
kilosort.run_kilosort: Mem avail: 13.55 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort:
kilosort.run_kilosort: First clustering
kilosort.run_kilosort: ----------------------------------------
0%| | 0/1 [00:00<?, ?it/s]/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/kilosort/clustering_qr.py:94: UserWarning: Sparse invariant checks are implicitly disabled. Memory errors (e.g. SEGFAULT) will occur when operating on a sparse tensor which violates the invariants, but checks incur performance overhead. To silence this warning, explicitly opt in or out. See `torch.sparse.check_sparse_tensor_invariants.__doc__` for guidance. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/Context.cpp:848.)
xS = coo(iis, tones2.flatten(), (nsub, nclust))
100%|██████████| 1/1 [00:08<00:00, 8.04s/it]
100%|██████████| 1/1 [00:08<00:00, 8.05s/it]
kilosort.run_kilosort: 54 clusters found, in 8.10s; total 137.86s
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after first clustering
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 0.00 %
kilosort.run_kilosort: Mem used: 12.70 % | 1.98 GB
kilosort.run_kilosort: Mem avail: 13.64 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort:
kilosort.run_kilosort: Extracting spikes using cluster waveforms
kilosort.run_kilosort: ----------------------------------------
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:13, 2.08it/s]
7%|▋ | 2/30 [00:00<00:13, 2.14it/s]
10%|█ | 3/30 [00:01<00:12, 2.14it/s]
13%|█▎ | 4/30 [00:01<00:11, 2.22it/s]
17%|█▋ | 5/30 [00:02<00:10, 2.38it/s]
20%|██ | 6/30 [00:02<00:09, 2.59it/s]
23%|██▎ | 7/30 [00:02<00:09, 2.43it/s]
27%|██▋ | 8/30 [00:03<00:09, 2.43it/s]
30%|███ | 9/30 [00:03<00:08, 2.39it/s]
33%|███▎ | 10/30 [00:04<00:08, 2.34it/s]
37%|███▋ | 11/30 [00:04<00:07, 2.41it/s]
40%|████ | 12/30 [00:05<00:07, 2.40it/s]
43%|████▎ | 13/30 [00:05<00:07, 2.40it/s]
47%|████▋ | 14/30 [00:05<00:06, 2.41it/s]
50%|█████ | 15/30 [00:06<00:06, 2.44it/s]
53%|█████▎ | 16/30 [00:06<00:05, 2.57it/s]
57%|█████▋ | 17/30 [00:07<00:05, 2.45it/s]
60%|██████ | 18/30 [00:07<00:05, 2.36it/s]
63%|██████▎ | 19/30 [00:08<00:04, 2.30it/s]
67%|██████▋ | 20/30 [00:08<00:04, 2.19it/s]
70%|███████ | 21/30 [00:09<00:04, 2.16it/s]
73%|███████▎ | 22/30 [00:09<00:03, 2.15it/s]
77%|███████▋ | 23/30 [00:09<00:03, 2.14it/s]
80%|████████ | 24/30 [00:10<00:02, 2.14it/s]
83%|████████▎ | 25/30 [00:10<00:02, 2.20it/s]
87%|████████▋ | 26/30 [00:11<00:01, 2.24it/s]
90%|█████████ | 27/30 [00:11<00:01, 2.27it/s]
93%|█████████▎| 28/30 [00:12<00:00, 2.28it/s]
97%|█████████▋| 29/30 [00:12<00:00, 2.28it/s]
100%|██████████| 30/30 [00:12<00:00, 2.30it/s]
100%|██████████| 30/30 [00:12<00:00, 2.31it/s]
kilosort.run_kilosort: 64834 spikes extracted in 13.03s; total 150.91s
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after spike detect (learned)
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 100.00 %
kilosort.run_kilosort: Mem used: 11.90 % | 1.87 GB
kilosort.run_kilosort: Mem avail: 13.75 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort:
kilosort.run_kilosort: Final clustering
kilosort.run_kilosort: ----------------------------------------
0%| | 0/1 [00:00<?, ?it/s]
100%|██████████| 1/1 [00:17<00:00, 17.91s/it]
100%|██████████| 1/1 [00:17<00:00, 17.91s/it]
kilosort.run_kilosort: 58 clusters found, in 17.92s; total 170.18s
kilosort.run_kilosort:
kilosort.run_kilosort: Merging clusters
kilosort.run_kilosort: ----------------------------------------
kilosort.run_kilosort: 57 units found, in 0.09s; total 170.28s
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after clustering
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 0.00 %
kilosort.run_kilosort: Mem used: 11.80 % | 1.85 GB
kilosort.run_kilosort: Mem avail: 13.76 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort:
kilosort.run_kilosort: Saving to phy and computing refractory periods
kilosort.run_kilosort: ----------------------------------------
kilosort.run_kilosort: 37 units found with good refractory periods
kilosort.run_kilosort: Exporting to Phy took: 0.18s
kilosort.run_kilosort: Total runtime: 170.46s = 00:02:50 h:m:s
kilosort.run_kilosort: Sorting output saved in: /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output.
kilosort.run_kilosort:
kilosort.run_kilosort: Resource usage after saving
kilosort.run_kilosort: ********************************************************
kilosort.run_kilosort: CPU usage: 100.00 %
kilosort.run_kilosort: Mem used: 11.80 % | 1.85 GB
kilosort.run_kilosort: Mem avail: 13.76 / 15.61 GB
kilosort.run_kilosort: ------------------------------------------------------
kilosort.run_kilosort: GPU usage: N/A
kilosort.run_kilosort: GPU memory: N/A
kilosort.run_kilosort: ********************************************************
kilosort4 run time 170.48s
The sorter writes its output to disk. We can reload it at any time with si.load:
sorting_KS4 = si.load("results/sorter_KS4")
sorting_KS4Unit IDs
- [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56]
Annotations
- phy_folder : /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'kilosort4', 'sorter_params': {'batch_size': 60000, 'nblocks': 1, 'Th_universal': 9, 'Th_learned': 8, 'nt': 61, 'shift': None, 'scale': None, 'batch_downsampling': 1, 'artifact_threshold': inf, 'nskip': 25, 'whitening_range': 32, 'highpass_cutoff': 300, 'binning_depth': 5, 'sig_interp': 20, 'drift_smoothing': [0.5, 0.5, 0.5], 'nt0min': None, 'dmin': None, 'dminx': 32, 'min_template_size': 10, 'template_sizes': 5, 'nearest_chans': 10, 'nearest_templates': 100, 'max_channel_distance': 32, 'max_peels': 100, 'templates_from_data': True, 'n_templates': 6, 'n_pcs': 6, 'Th_single_ch': 6, 'acg_threshold': 0.2, 'ccg_threshold': 0.25, 'cluster_neighbors': 10, 'cluster_downsampling': 20, 'max_cluster_subset': 25000, 'x_centers': None, 'cluster_init_seed': 5, 'duplicate_spike_ms': 0.25, 'position_limit': 100, 'do_CAR': True, 'invert_sign': False, 'save_extra_vars': False, 'save_preprocessed_copy': False, 'torch_device': 'auto', 'bad_channels': None, 'clear_cache': False, 'do_correction': False, 'skip_kilosort_preprocessing': False, 'keep_good_only': False, 'use_binary_file': True, 'delete_recording_dat': True, 'pool_engine': 'process', 'n_jobs': 0.5, 'chunk_duration': '1s', 'progress_bar': True, 'mp_context': None, 'max_threads_per_worker': 1}}, 'log': {'sorter_name': 'kilosort4', 'sorter_version': '4.1.7', 'datetime': '2026-10-15T14:48:27.917679', 'runtime_trace': ['2026-10-15 14:48:27,923 kilosort.run_kilosort INFO', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO Computing preprocessing variables.', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N samples: 1800000', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N seconds: 90.0', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N batches: 30', '2026-10-15 14:48:28,159 kilosort.run_kilosort INFO Preprocessing filters computed in 0.24s; total 0.24s', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG hp_filter shape: torch.Size([30122])', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG whiten_mat shape: torch.Size([58, 58])', '2026-10-15 14:48:28,258 kilosort.run_kilosort DEBUG First batch min, max: (np.float32(-3390.4734), np.float32(1657.6608))', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO Resource usage after preprocessing', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO CPU usage: 51.20 %', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,263 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,266 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,267 kilosort.run_kilosort INFO Computing drift correction.', '2026-10-15 14:48:28,268 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,268 kilosort.datashift INFO nblocks = 0, skipping drift correction', '2026-10-15 14:48:28,269 kilosort.run_kilosort INFO drift computed in 0.00s; total 0.35s', '2026-10-15 14:48:28,270 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO Resource usage after drift correction', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO Extracting spikes using templates', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,276 kilosort.spikedetect INFO Re-computing universal templates from data.', '2026-10-15 14:48:32,462 kilosort.spikedetect INFO Number of universal templates: 246', '2026-10-15 14:48:32,465 kilosort.spikedetect INFO Detecting spikes...', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Batch 0 of 29 (0.0%)', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG CPU usage: 46.60 %', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem used: 11.50 % | 1.80 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem avail: 13.82 / 15.61 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Batch 29 of 29 (96.7%)', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem used: 13.60 % | 2.12 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem avail: 13.49 / 15.61 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,675 kilosort.run_kilosort INFO 39391 spikes extracted in 129.40s; total 129.75s', '2026-10-15 14:50:37,675 kilosort.run_kilosort DEBUG st0 shape: (39391, 6)', '2026-10-15 14:50:37,676 kilosort.run_kilosort DEBUG tF shape: torch.Size([39391, 10, 6])', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO Resource usage after spike detect (univ)', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO Mem used: 13.30 % | 2.07 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO Mem avail: 13.55 / 15.61 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,687 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO First clustering', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:37,695 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4098, 60]) | ntemp: 8', '2026-10-15 14:50:38,674 kilosort.clustering_qr DEBUG Center 1 | Xd shape: torch.Size([346, 60]) | ntemp: 8', '2026-10-15 14:50:38,675 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([474, 66]) | ntemp: 8', '2026-10-15 14:50:38,679 kilosort.clustering_qr DEBUG Center 3 | Xd shape: torch.Size([450, 72]) | ntemp: 8', '2026-10-15 14:50:38,680 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([836, 72]) | ntemp: 8', '2026-10-15 14:50:38,681 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1366, 66]) | ntemp: 8', '2026-10-15 14:50:39,121 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([290, 72]) | ntemp: 8', '2026-10-15 14:50:39,122 kilosort.clustering_qr DEBUG Center 7 | Xd shape: torch.Size([268, 66]) | ntemp: 8', '2026-10-15 14:50:39,126 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([621, 66]) | ntemp: 8', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Cluster center: 9 (10/31)', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG CPU usage: 54.30 %', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,128 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([1802, 72]) | ntemp: 8', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1802])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1802, 72])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kn: 0.14 MB, shape: torch.Size([1802, 10])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG rows_neigh: 0.14 MB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG CPU usage: 77.40 %', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG CPU usage: 49.70 %', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,669 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([1164, 66]) | ntemp: 8', '2026-10-15 14:50:40,010 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([808, 72]) | ntemp: 8', '2026-10-15 14:50:40,011 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([868, 66]) | ntemp: 8', '2026-10-15 14:50:40,012 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1467, 72]) | ntemp: 8', '2026-10-15 14:50:40,421 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([484, 66]) | ntemp: 8', '2026-10-15 14:50:40,425 kilosort.clustering_qr DEBUG Center 15 | Xd shape: torch.Size([640, 72]) | ntemp: 8', '2026-10-15 14:50:40,426 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([644, 66]) | ntemp: 8', '2026-10-15 14:50:40,427 kilosort.clustering_qr DEBUG Center 17 | Xd shape: torch.Size([523, 72]) | ntemp: 8', '2026-10-15 14:50:40,431 kilosort.clustering_qr DEBUG Center 18 | Xd shape: torch.Size([670, 66]) | ntemp: 8', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Cluster center: 19 (20/31)', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG CPU usage: 58.00 %', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,433 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([1265, 66]) | ntemp: 8', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG ki: 0.00 MB, shape: torch.Size([1265])', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Xg: 0.32 MB, shape: torch.Size([1265, 66])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG kn: 0.10 MB, shape: torch.Size([1265, 10])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG rows_neigh: 0.10 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG tones2: 0.05 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG CPU usage: 81.60 %', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,830 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG CPU usage: 50.50 %', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,840 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([2486, 72]) | ntemp: 8', '2026-10-15 14:50:41,544 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1075, 72]) | ntemp: 8', '2026-10-15 14:50:41,865 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([1561, 72]) | ntemp: 8', '2026-10-15 14:50:42,298 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([1236, 72]) | ntemp: 8', '2026-10-15 14:50:42,695 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([1390, 66]) | ntemp: 8', '2026-10-15 14:50:43,084 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([4619, 66]) | ntemp: 8', '2026-10-15 14:50:44,242 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([1395, 66]) | ntemp: 8', '2026-10-15 14:50:44,672 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([362, 72]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([973, 60]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Cluster center: 29 (30/31)', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG CPU usage: 57.30 %', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([745, 60]) | ntemp: 8', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,676 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([4465, 60]) | ntemp: 6', '2026-10-15 14:50:45,783 kilosort.run_kilosort INFO 54 clusters found, in 8.10s; total 137.86s', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG clu shape: (39391,)', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG Wall shape: torch.Size([54, 58, 6])', '2026-10-15 14:50:45,784 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO Resource usage after first clustering', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO Mem used: 12.70 % | 1.98 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO Mem avail: 13.64 / 15.61 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:45,788 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:45,789 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:45,801 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,802 kilosort.run_kilosort INFO Extracting spikes using cluster waveforms', '2026-10-15 14:50:45,803 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Batch 0', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem used: 14.00 % | 2.19 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem avail: 13.43 / 15.61 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Batch 29', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem used: 13.70 % | 2.15 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem avail: 13.47 / 15.61 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:58,831 kilosort.run_kilosort INFO 64834 spikes extracted in 13.03s; total 150.91s', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG st shape: (64834, 3)', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG tF shape: torch.Size([64834, 10, 6])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iCC shape: torch.Size([10, 58])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iU shape: torch.Size([49])', '2026-10-15 14:50:58,832 kilosort.run_kilosort INFO', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO Resource usage after spike detect (learned)', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem used: 11.90 % | 1.87 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem avail: 13.75 / 15.61 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO Final clustering', '2026-10-15 14:51:00,186 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:00,192 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4594, 60]) | ntemp: 3', '2026-10-15 14:51:03,815 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([543, 60]) | ntemp: 1', '2026-10-15 14:51:03,817 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([2101, 66]) | ntemp: 3', '2026-10-15 14:51:04,434 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1421, 66]) | ntemp: 2', '2026-10-15 14:51:04,838 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([163, 60]) | ntemp: 1', '2026-10-15 14:51:04,839 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([1562, 66]) | ntemp: 2', '2026-10-15 14:51:05,257 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([2336, 60]) | ntemp: 2', '2026-10-15 14:51:05,854 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([2796, 66]) | ntemp: 2', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([468, 60]) | ntemp: 1', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Cluster center: 12 (10/25)', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG CPU usage: 39.20 %', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,575 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([1939, 66]) | ntemp: 3', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1939])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1939, 66])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG kn: 0.15 MB, shape: torch.Size([1939, 10])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG rows_neigh: 0.15 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,580 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG CPU usage: 86.50 %', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem used: 12.00 % | 1.88 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,116 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1006, 60]) | ntemp: 1', '2026-10-15 14:51:07,466 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([3234, 60]) | ntemp: 3', '2026-10-15 14:51:08,325 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([1275, 60]) | ntemp: 1', '2026-10-15 14:51:08,692 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([4417, 60]) | ntemp: 3', '2026-10-15 14:51:09,733 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([5354, 66]) | ntemp: 4', '2026-10-15 14:51:11,001 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1463, 66]) | ntemp: 2', '2026-10-15 14:51:11,448 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([474, 60]) | ntemp: 1', '2026-10-15 14:51:11,454 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([5871, 66]) | ntemp: 3', '2026-10-15 14:51:12,883 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([985, 66]) | ntemp: 2', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Cluster center: 25 (20/25)', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG CPU usage: 54.70 %', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,887 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([9376, 66]) | ntemp: 2', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ki: 0.04 MB, shape: torch.Size([9376])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Xg: 2.36 MB, shape: torch.Size([9376, 66])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kn: 0.72 MB, shape: torch.Size([9376, 10])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG rows_neigh: 0.72 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG tones2: 0.36 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,048 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,069 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([244, 60]) | ntemp: 1', '2026-10-15 14:51:15,070 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([956, 60]) | ntemp: 1', '2026-10-15 14:51:15,075 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([1596, 60]) | ntemp: 1', '2026-10-15 14:51:15,551 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([2395, 60]) | ntemp: 1', '2026-10-15 14:51:16,166 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([8265, 60]) | ntemp: 3', '2026-10-15 14:51:18,102 kilosort.run_kilosort INFO 58 clusters found, in 17.92s; total 170.18s', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG Wall shape: torch.Size([58, 58, 6])', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:51:18,114 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO Merging clusters', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,200 kilosort.run_kilosort INFO 57 units found, in 0.09s; total 170.28s', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG Wall shape: torch.Size([57, 58, 6])', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO Resource usage after clustering', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,204 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,206 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,207 kilosort.run_kilosort INFO Saving to phy and computing refractory periods', '2026-10-15 14:51:18,208 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG', '2026-10-15 14:51:18,210 kilosort.io DEBUG save_to_phy, whitening', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,210 kilosort.io DEBUG CPU usage: 66.70 %', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG', '2026-10-15 14:51:18,222 kilosort.io DEBUG save_to_phy, spike positions', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG', '2026-10-15 14:51:18,228 kilosort.io DEBUG save_to_phy, remove duplicates', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem used: 11.90 % | 1.85 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG', '2026-10-15 14:51:18,234 kilosort.io DEBUG save_to_phy, template props', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG', '2026-10-15 14:51:18,366 kilosort.io DEBUG save_to_phy, pc features', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG CPU usage: 39.60 %', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG', '2026-10-15 14:51:18,382 kilosort.io DEBUG save_to_phy, est contam', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG CPU usage: 28.60 %', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,383 kilosort.run_kilosort INFO 37 units found with good refractory periods', '2026-10-15 14:51:18,385 kilosort.run_kilosort INFO Exporting to Phy took: 0.18s', '2026-10-15 14:51:18,386 kilosort.run_kilosort INFO Total runtime: 170.46s = 00:02:50 h:m:s', '2026-10-15 14:51:18,387 kilosort.run_kilosort INFO Sorting output saved in: /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output.', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO Resource usage after saving', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,392 kilosort.run_kilosort INFO ********************************************************'], 'error': False, 'run_time': 170.475634007}}
Properties
original_cluster_id
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56]Amplitude
[11.2 19.4 10.9 10.1 9.6 14.7 16.9 13.3 10.2 12.2 10.6 9.9 12.6 10.6 10. 14.1 11.3 18.4 16.6 10.2 10.8 18.7 14.8 12. 23.2 15.4 10.4 10.5 18.5 9.6 17.9 9.8 10.1 15.1 9.8 13.5 10.3 14.9 12.6 16.7 9.9 14.4 10.8 21.7 10.7 11. 11.8 10.4 16.9 20. 10.1 15.4 10.3 11.4 10. 12.2 17.4]KSLabel
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']KSLabel_repeat
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']ContamPct
[ 19.6 3.2 51.9 0. 0. 0. 0. 9.1 22.2 102.6 10.6 64.9 32.6 12.5 0. 4.4 58.7 0. 64.5 26. 0. 34. 0. 33.1 0. 0. 0. 30.5 0. 84.2 0. 14.9 12.2 15.3 22.2 18.8 0. 3.7 8.3 0. 24.2 31.9 14.7 0. 53.6 8.7 41.8 80.2 0.8 8.4 17.2 0. 11.1 22.3 37.6 2.4 1.1]main_channel_id
[61 60 57 55 50 52 53 50 51 49 44 45 42 44 41 41 40 41 39 37 36 37 36 38 35 35 35 32 32 33 28 26 22 23 23 21 20 20 21 19 19 18 16 14 14 15 13 11 10 9 6 3 4 1 1 0 0]4.4 Internal sorter: Lupin
Let’s do the same with lupin. Again, we can check its default parameters first:
si.get_default_sorter_params("lupin")
sorter_params = {
"apply_motion_correction": False,
}
sorting_LUPIN = si.run_sorter(
"lupin",
recording_preprocessed,
folder="results/sorter_LUPIN",
remove_existing_folder=True,
verbose=True,
**sorter_params
)
sorting_LUPIN = si.load("results/sorter_LUPIN")
sorting_LUPIN
.::----::..
..:-+#%*+#%@@@@@@@+..:+#+.
.+@%%@@@@@@@@@@@@@@#: .=@=
-@@@@@@@@@@@@@@@@@@%-. .=@*
.@@@@@@@@@@@@@@@@@@@*. .-%#
%@@@@@@@@@@@@@@@@@@*. :#%
=%%@@@@@@@@@@@@@@%%+: .+@.
-%#@@@@@@@@@@@@@@%*== .-@.
:#%@@@@@@@@@@@@@@%#+# .=@.
.+%@@@@@@@@@@@@@@@%#@. .+@.
.+*#@@@@@@@@@@@@@@@%@. .+@:
.=%+@@@@@@@@@@@@@@@@*. =%-.
:#%##@@@@@@@@@@@@%%-. :%+.
..:=**%@@@@@@@@@@@@@@@:. .%%......
.+#@%%%@**@%@@@@@@@@@@@*....=%@%@@@@@%=..
.*@@@@@@@@@@@=#@@@@@@@@@@*=:.:.#@@@@@@%%-.
.-%%@@@@@@@@@@@@@#+%@+-::-+=:=::+@@@@@@##-.
.:%@@@@@@@@@@@@@@@@@%+%##*%%%**%@@@@@@##+.
.+@@@@@@@@@@@@@@@@#***++***@@@@@@@@%%%=.
.:*@@@@@@@@%=-..... ....:-*%%%%%+-.
..:-:..
LUPIN version 2026.01
detect_peaks(): 62513 peaks found
select_peaks(): 62513 peaks kept for clustering
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/template_tools.py:397: UserWarning: get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign
warnings.warn("get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign")
find_clusters_from_peaks(): 103 cluster found
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/template_tools.py:397: UserWarning: get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign
warnings.warn("get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign")
lupin run time 66.84s
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/core_tools.py:968: UserWarning: The extractor is not serializable to file. The provenance will not be saved.
warnings.warn("The extractor is not serializable to file. The provenance will not be saved.")
Unit IDs
- [ 4 5 6 7 8 11 15 16 17 23 24 25 26 28 29 31 39 41
42 43 44 45 48 49 51 55 57 58 59 60 61 62 63 64 65 66
67 68 69 70 71 72 74 75 76 77 78 79 81 82 83 84 86 87
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106
107 108 110 111 112 113 114 115 116 117 118 119 121 122 123 124 125 126
127 128 129 130 131 133 134 135 136 137 138 139 140]
Annotations
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'lupin', 'sorter_params': {'apply_preprocessing': True, 'preprocessing_dict': None, 'apply_motion_correction': False, 'motion_correction_preset': 'dredge_fast', 'clustering_ms_before': 0.3, 'clustering_ms_after': 1.3, 'whitening_radius_um': 100.0, 'detection_radius_um': 50.0, 'features_radius_um': 120.0, 'split_radius_um': 60.0, 'template_radius_um': 100.0, 'merge_similarity_lag_ms': 0.5, 'freq_min': 150.0, 'freq_max': 7000.0, 'cache_preprocessing_mode': 'auto', 'peak_sign': 'neg', 'detect_threshold': 5.0, 'n_peaks_per_channel': 5000, 'n_svd_components_per_channel': 5, 'n_pca_features': 4, 'clustering_recursive_depth': 3, 'ms_before': 1.0, 'ms_after': 2.5, 'template_sparsify_threshold': 1.0, 'template_min_snr_ptp': 4.0, 'template_max_jitter_ms': 0.2, 'template_matching_engine': 'wobble', 'min_firing_rate': 0.1, 'gather_mode': 'memory', 'job_kwargs': {}, 'seed': None, 'save_array': True, 'debug': False}}, 'log': {'sorter_name': 'lupin', 'sorter_version': '2026.01', 'datetime': '2026-10-15T14:51:18.447864', 'runtime_trace': [], 'error': False, 'run_time': 66.84390125699997}}
Properties
4.5 Internal sorter: spykingcircus2
And with spykingcircus2 (developed by Pierre Yger):
sorter_params = {
"apply_motion_correction": False,
}
sorting_SC2 = si.run_sorter(
"spykingcircus2",
recording_preprocessed,
folder="results/sorter_SC2",
remove_existing_folder=True,
verbose=True,
**sorter_params
)
sorting_SC2 = si.load("results/sorter_SC2")
sorting_SC2Preprocessing the recording (bandpass filtering + CMR + whitening)
detect peaks (matched_filtering)
engine=process - n_jobs=2 - samples_per_chunk=20,000 - chunk_memory=4.43 MiB - total_memory=8.85 MiB - chunk_duration=1.00s
Exception ignored in: <function SharedMemoryRecording.__del__ at 0x7f34c6a37ec0>
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/numpyextractors.py", line 216, in __del__
shm.unlink()
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/multiprocessing/shared_memory.py", line 243, in unlink
_posixshmem.shm_unlink(self._name)
FileNotFoundError: [Errno 2] No such file or directory: '/psm_9b1fb6e9'
Kept 67769 peaks for clustering
Removed 0 empty templates
Removed 0 unaligned templates
Removed 0 templates with too low SNR
Removed 1 templates with too high mean sd / noise ratio
Kept 71 raw clusters
Kept 71 non-duplicated clusters
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/template_tools.py:397: UserWarning: get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign
warnings.warn("get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign")
Removed 0 empty templates
Removed 0 unaligned templates
Removed 0 templates with too low SNR
Removed 0 templates with too high mean sd / noise ratio
remove_small_cluster: kept 71 removed 0 (min_spike_count 9)
Kept 71 clean clusters
find spikes (circus-omp)
engine=process - n_jobs=2 - samples_per_chunk=20,000 - chunk_memory=4.43 MiB - total_memory=8.85 MiB - chunk_duration=1.00s
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/template_tools.py:397: UserWarning: get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign
warnings.warn("get_template_peak_shift_on_main_channel() with Templates should provide a peak_sign")
Found 171341 spikes
Kept 71 units after final merging
spykingcircus2 run time 66.96s
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/core_tools.py:968: UserWarning: The extractor is not serializable to file. The provenance will not be saved.
warnings.warn("The extractor is not serializable to file. The provenance will not be saved.")
Unit IDs
- [ 1 2 3 4 5 6 7 8 11 12 13 16 17 18 20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 37 38 39 40 41 42 43 44 45 47 48 49 50 51 54 55 58 59 60
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83]
Annotations
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'spykingcircus2', 'sorter_params': {'general': {'ms_before': 0.5, 'ms_after': 1.5, 'radius_um': 100.0}, 'filtering': {'freq_min': 150, 'freq_max': 7000, 'ftype': 'bessel', 'filter_order': 2}, 'whitening': {'mode': 'local', 'regularize': False}, 'detection': {'method': 'matched_filtering', 'method_kwargs': {'peak_sign': 'neg', 'detect_threshold': 5}, 'pipeline_kwargs': {}}, 'selection': {'method': 'uniform', 'method_kwargs': {'n_peaks_per_channel': 5000, 'min_n_peaks': 100000, 'select_per_channel': False}}, 'apply_motion_correction': False, 'motion_correction': {'preset': 'dredge_fast'}, 'merging': {'max_distance_um': 50}, 'clustering': {'method': 'iterative-hdbscan', 'method_kwargs': {}}, 'cleaning': {'min_snr': 5, 'max_jitter_ms': 0.2, 'sparsify_threshold': 1, 'mean_sd_ratio_threshold': 3}, 'min_firing_rate': 0.1, 'matching': {'method': 'circus-omp', 'method_kwargs': {}, 'pipeline_kwargs': {}}, 'apply_preprocessing': True, 'apply_whitening': True, 'cache_preprocessing': {'mode': 'memory', 'memory_limit': 0.5}, 'chunk_preprocessing': {'memory_limit': None}, 'multi_units_only': False, 'job_kwargs': {}, 'seed': 42, 'deterministic_peaks_detection': False, 'debug': False}}, 'log': {'sorter_name': 'spykingcircus2', 'sorter_version': '2025.12', 'datetime': '2026-10-15T14:52:25.314282', 'runtime_trace': [], 'error': False, 'run_time': 66.96336576199997}}
Properties
main_channel_id
[ 1 2 3 4 5 6 7 8 11 12 13 16 18 19 21 22 23 24 25 26 27 28 29 31 32 33 35 36 37 40 41 42 43 44 45 46 47 48 50 51 52 53 54 58 59 0 0 0 9 9 8 10 14 14 10 15 20 20 38 38 39 39 49 49 55 55 55 57 57 60 60]Some sorters are difficult to install, requiring Matlab, CUDA, or other system-level dependencies. To avoid this headache, SpikeInterface provides a built-in mechanism to run a spike sorting job inside a Docker or Singularity container, without installing anything besides Docker/Singularity itself.
We maintain a set of sorter-specific Dockerfiles in the spikeinterface-dockerfiles repo, and most of the images are available on Docker Hub from the SpikeInterface organization.
Running spike sorting in a container just requires:
- Docker or Singularity installed on the machine
- the corresponding Python SDK installed (
pip install dockerorpip install spython)
When this is set up, running a sorter in a container is as simple as adding docker_image=True (or singularity_image=True) to run_sorter
4.6 Using the Sorting object
Similarly to the Recording object, Sorting objects have properties and annotations, and support lazy, chainable processing.
Let’s reload everything we have computed so far:
sorting_KS4 = si.load("results/sorter_KS4")
sorting_LUPIN = si.load("results/sorter_LUPIN")
sorting_SC2 = si.load("results/sorter_SC2")
sorting_KS4Unit IDs
- [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56]
Annotations
- phy_folder : /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'kilosort4', 'sorter_params': {'batch_size': 60000, 'nblocks': 1, 'Th_universal': 9, 'Th_learned': 8, 'nt': 61, 'shift': None, 'scale': None, 'batch_downsampling': 1, 'artifact_threshold': inf, 'nskip': 25, 'whitening_range': 32, 'highpass_cutoff': 300, 'binning_depth': 5, 'sig_interp': 20, 'drift_smoothing': [0.5, 0.5, 0.5], 'nt0min': None, 'dmin': None, 'dminx': 32, 'min_template_size': 10, 'template_sizes': 5, 'nearest_chans': 10, 'nearest_templates': 100, 'max_channel_distance': 32, 'max_peels': 100, 'templates_from_data': True, 'n_templates': 6, 'n_pcs': 6, 'Th_single_ch': 6, 'acg_threshold': 0.2, 'ccg_threshold': 0.25, 'cluster_neighbors': 10, 'cluster_downsampling': 20, 'max_cluster_subset': 25000, 'x_centers': None, 'cluster_init_seed': 5, 'duplicate_spike_ms': 0.25, 'position_limit': 100, 'do_CAR': True, 'invert_sign': False, 'save_extra_vars': False, 'save_preprocessed_copy': False, 'torch_device': 'auto', 'bad_channels': None, 'clear_cache': False, 'do_correction': False, 'skip_kilosort_preprocessing': False, 'keep_good_only': False, 'use_binary_file': True, 'delete_recording_dat': True, 'pool_engine': 'process', 'n_jobs': 0.5, 'chunk_duration': '1s', 'progress_bar': True, 'mp_context': None, 'max_threads_per_worker': 1}}, 'log': {'sorter_name': 'kilosort4', 'sorter_version': '4.1.7', 'datetime': '2026-10-15T14:48:27.917679', 'runtime_trace': ['2026-10-15 14:48:27,923 kilosort.run_kilosort INFO', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO Computing preprocessing variables.', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N samples: 1800000', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N seconds: 90.0', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N batches: 30', '2026-10-15 14:48:28,159 kilosort.run_kilosort INFO Preprocessing filters computed in 0.24s; total 0.24s', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG hp_filter shape: torch.Size([30122])', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG whiten_mat shape: torch.Size([58, 58])', '2026-10-15 14:48:28,258 kilosort.run_kilosort DEBUG First batch min, max: (np.float32(-3390.4734), np.float32(1657.6608))', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO Resource usage after preprocessing', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO CPU usage: 51.20 %', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,263 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,266 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,267 kilosort.run_kilosort INFO Computing drift correction.', '2026-10-15 14:48:28,268 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,268 kilosort.datashift INFO nblocks = 0, skipping drift correction', '2026-10-15 14:48:28,269 kilosort.run_kilosort INFO drift computed in 0.00s; total 0.35s', '2026-10-15 14:48:28,270 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO Resource usage after drift correction', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO Extracting spikes using templates', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,276 kilosort.spikedetect INFO Re-computing universal templates from data.', '2026-10-15 14:48:32,462 kilosort.spikedetect INFO Number of universal templates: 246', '2026-10-15 14:48:32,465 kilosort.spikedetect INFO Detecting spikes...', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Batch 0 of 29 (0.0%)', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG CPU usage: 46.60 %', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem used: 11.50 % | 1.80 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem avail: 13.82 / 15.61 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Batch 29 of 29 (96.7%)', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem used: 13.60 % | 2.12 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem avail: 13.49 / 15.61 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,675 kilosort.run_kilosort INFO 39391 spikes extracted in 129.40s; total 129.75s', '2026-10-15 14:50:37,675 kilosort.run_kilosort DEBUG st0 shape: (39391, 6)', '2026-10-15 14:50:37,676 kilosort.run_kilosort DEBUG tF shape: torch.Size([39391, 10, 6])', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO Resource usage after spike detect (univ)', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO Mem used: 13.30 % | 2.07 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO Mem avail: 13.55 / 15.61 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,687 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO First clustering', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:37,695 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4098, 60]) | ntemp: 8', '2026-10-15 14:50:38,674 kilosort.clustering_qr DEBUG Center 1 | Xd shape: torch.Size([346, 60]) | ntemp: 8', '2026-10-15 14:50:38,675 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([474, 66]) | ntemp: 8', '2026-10-15 14:50:38,679 kilosort.clustering_qr DEBUG Center 3 | Xd shape: torch.Size([450, 72]) | ntemp: 8', '2026-10-15 14:50:38,680 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([836, 72]) | ntemp: 8', '2026-10-15 14:50:38,681 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1366, 66]) | ntemp: 8', '2026-10-15 14:50:39,121 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([290, 72]) | ntemp: 8', '2026-10-15 14:50:39,122 kilosort.clustering_qr DEBUG Center 7 | Xd shape: torch.Size([268, 66]) | ntemp: 8', '2026-10-15 14:50:39,126 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([621, 66]) | ntemp: 8', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Cluster center: 9 (10/31)', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG CPU usage: 54.30 %', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,128 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([1802, 72]) | ntemp: 8', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1802])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1802, 72])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kn: 0.14 MB, shape: torch.Size([1802, 10])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG rows_neigh: 0.14 MB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG CPU usage: 77.40 %', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG CPU usage: 49.70 %', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,669 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([1164, 66]) | ntemp: 8', '2026-10-15 14:50:40,010 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([808, 72]) | ntemp: 8', '2026-10-15 14:50:40,011 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([868, 66]) | ntemp: 8', '2026-10-15 14:50:40,012 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1467, 72]) | ntemp: 8', '2026-10-15 14:50:40,421 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([484, 66]) | ntemp: 8', '2026-10-15 14:50:40,425 kilosort.clustering_qr DEBUG Center 15 | Xd shape: torch.Size([640, 72]) | ntemp: 8', '2026-10-15 14:50:40,426 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([644, 66]) | ntemp: 8', '2026-10-15 14:50:40,427 kilosort.clustering_qr DEBUG Center 17 | Xd shape: torch.Size([523, 72]) | ntemp: 8', '2026-10-15 14:50:40,431 kilosort.clustering_qr DEBUG Center 18 | Xd shape: torch.Size([670, 66]) | ntemp: 8', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Cluster center: 19 (20/31)', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG CPU usage: 58.00 %', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,433 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([1265, 66]) | ntemp: 8', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG ki: 0.00 MB, shape: torch.Size([1265])', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Xg: 0.32 MB, shape: torch.Size([1265, 66])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG kn: 0.10 MB, shape: torch.Size([1265, 10])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG rows_neigh: 0.10 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG tones2: 0.05 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG CPU usage: 81.60 %', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,830 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG CPU usage: 50.50 %', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,840 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([2486, 72]) | ntemp: 8', '2026-10-15 14:50:41,544 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1075, 72]) | ntemp: 8', '2026-10-15 14:50:41,865 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([1561, 72]) | ntemp: 8', '2026-10-15 14:50:42,298 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([1236, 72]) | ntemp: 8', '2026-10-15 14:50:42,695 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([1390, 66]) | ntemp: 8', '2026-10-15 14:50:43,084 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([4619, 66]) | ntemp: 8', '2026-10-15 14:50:44,242 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([1395, 66]) | ntemp: 8', '2026-10-15 14:50:44,672 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([362, 72]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([973, 60]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Cluster center: 29 (30/31)', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG CPU usage: 57.30 %', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([745, 60]) | ntemp: 8', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,676 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([4465, 60]) | ntemp: 6', '2026-10-15 14:50:45,783 kilosort.run_kilosort INFO 54 clusters found, in 8.10s; total 137.86s', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG clu shape: (39391,)', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG Wall shape: torch.Size([54, 58, 6])', '2026-10-15 14:50:45,784 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO Resource usage after first clustering', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO Mem used: 12.70 % | 1.98 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO Mem avail: 13.64 / 15.61 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:45,788 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:45,789 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:45,801 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,802 kilosort.run_kilosort INFO Extracting spikes using cluster waveforms', '2026-10-15 14:50:45,803 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Batch 0', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem used: 14.00 % | 2.19 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem avail: 13.43 / 15.61 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Batch 29', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem used: 13.70 % | 2.15 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem avail: 13.47 / 15.61 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:58,831 kilosort.run_kilosort INFO 64834 spikes extracted in 13.03s; total 150.91s', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG st shape: (64834, 3)', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG tF shape: torch.Size([64834, 10, 6])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iCC shape: torch.Size([10, 58])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iU shape: torch.Size([49])', '2026-10-15 14:50:58,832 kilosort.run_kilosort INFO', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO Resource usage after spike detect (learned)', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem used: 11.90 % | 1.87 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem avail: 13.75 / 15.61 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO Final clustering', '2026-10-15 14:51:00,186 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:00,192 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4594, 60]) | ntemp: 3', '2026-10-15 14:51:03,815 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([543, 60]) | ntemp: 1', '2026-10-15 14:51:03,817 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([2101, 66]) | ntemp: 3', '2026-10-15 14:51:04,434 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1421, 66]) | ntemp: 2', '2026-10-15 14:51:04,838 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([163, 60]) | ntemp: 1', '2026-10-15 14:51:04,839 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([1562, 66]) | ntemp: 2', '2026-10-15 14:51:05,257 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([2336, 60]) | ntemp: 2', '2026-10-15 14:51:05,854 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([2796, 66]) | ntemp: 2', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([468, 60]) | ntemp: 1', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Cluster center: 12 (10/25)', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG CPU usage: 39.20 %', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,575 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([1939, 66]) | ntemp: 3', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1939])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1939, 66])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG kn: 0.15 MB, shape: torch.Size([1939, 10])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG rows_neigh: 0.15 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,580 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG CPU usage: 86.50 %', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem used: 12.00 % | 1.88 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,116 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1006, 60]) | ntemp: 1', '2026-10-15 14:51:07,466 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([3234, 60]) | ntemp: 3', '2026-10-15 14:51:08,325 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([1275, 60]) | ntemp: 1', '2026-10-15 14:51:08,692 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([4417, 60]) | ntemp: 3', '2026-10-15 14:51:09,733 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([5354, 66]) | ntemp: 4', '2026-10-15 14:51:11,001 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1463, 66]) | ntemp: 2', '2026-10-15 14:51:11,448 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([474, 60]) | ntemp: 1', '2026-10-15 14:51:11,454 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([5871, 66]) | ntemp: 3', '2026-10-15 14:51:12,883 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([985, 66]) | ntemp: 2', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Cluster center: 25 (20/25)', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG CPU usage: 54.70 %', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,887 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([9376, 66]) | ntemp: 2', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ki: 0.04 MB, shape: torch.Size([9376])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Xg: 2.36 MB, shape: torch.Size([9376, 66])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kn: 0.72 MB, shape: torch.Size([9376, 10])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG rows_neigh: 0.72 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG tones2: 0.36 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,048 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,069 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([244, 60]) | ntemp: 1', '2026-10-15 14:51:15,070 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([956, 60]) | ntemp: 1', '2026-10-15 14:51:15,075 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([1596, 60]) | ntemp: 1', '2026-10-15 14:51:15,551 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([2395, 60]) | ntemp: 1', '2026-10-15 14:51:16,166 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([8265, 60]) | ntemp: 3', '2026-10-15 14:51:18,102 kilosort.run_kilosort INFO 58 clusters found, in 17.92s; total 170.18s', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG Wall shape: torch.Size([58, 58, 6])', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:51:18,114 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO Merging clusters', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,200 kilosort.run_kilosort INFO 57 units found, in 0.09s; total 170.28s', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG Wall shape: torch.Size([57, 58, 6])', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO Resource usage after clustering', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,204 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,206 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,207 kilosort.run_kilosort INFO Saving to phy and computing refractory periods', '2026-10-15 14:51:18,208 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG', '2026-10-15 14:51:18,210 kilosort.io DEBUG save_to_phy, whitening', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,210 kilosort.io DEBUG CPU usage: 66.70 %', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG', '2026-10-15 14:51:18,222 kilosort.io DEBUG save_to_phy, spike positions', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG', '2026-10-15 14:51:18,228 kilosort.io DEBUG save_to_phy, remove duplicates', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem used: 11.90 % | 1.85 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG', '2026-10-15 14:51:18,234 kilosort.io DEBUG save_to_phy, template props', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG', '2026-10-15 14:51:18,366 kilosort.io DEBUG save_to_phy, pc features', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG CPU usage: 39.60 %', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG', '2026-10-15 14:51:18,382 kilosort.io DEBUG save_to_phy, est contam', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG CPU usage: 28.60 %', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,383 kilosort.run_kilosort INFO 37 units found with good refractory periods', '2026-10-15 14:51:18,385 kilosort.run_kilosort INFO Exporting to Phy took: 0.18s', '2026-10-15 14:51:18,386 kilosort.run_kilosort INFO Total runtime: 170.46s = 00:02:50 h:m:s', '2026-10-15 14:51:18,387 kilosort.run_kilosort INFO Sorting output saved in: /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output.', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO Resource usage after saving', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,392 kilosort.run_kilosort INFO ********************************************************'], 'error': False, 'run_time': 170.475634007}}
Properties
original_cluster_id
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56]Amplitude
[11.2 19.4 10.9 10.1 9.6 14.7 16.9 13.3 10.2 12.2 10.6 9.9 12.6 10.6 10. 14.1 11.3 18.4 16.6 10.2 10.8 18.7 14.8 12. 23.2 15.4 10.4 10.5 18.5 9.6 17.9 9.8 10.1 15.1 9.8 13.5 10.3 14.9 12.6 16.7 9.9 14.4 10.8 21.7 10.7 11. 11.8 10.4 16.9 20. 10.1 15.4 10.3 11.4 10. 12.2 17.4]KSLabel
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']KSLabel_repeat
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']ContamPct
[ 19.6 3.2 51.9 0. 0. 0. 0. 9.1 22.2 102.6 10.6 64.9 32.6 12.5 0. 4.4 58.7 0. 64.5 26. 0. 34. 0. 33.1 0. 0. 0. 30.5 0. 84.2 0. 14.9 12.2 15.3 22.2 18.8 0. 3.7 8.3 0. 24.2 31.9 14.7 0. 53.6 8.7 41.8 80.2 0.8 8.4 17.2 0. 11.1 22.3 37.6 2.4 1.1]main_channel_id
[61 60 57 55 50 52 53 50 51 49 44 45 42 44 41 41 40 41 39 37 36 37 36 38 35 35 35 32 32 33 28 26 22 23 23 21 20 20 21 19 19 18 16 14 14 15 13 11 10 9 6 3 4 1 1 0 0]Retrieve spike trains
# spike times in samples
spike_samples = sorting_KS4.get_unit_spike_train(sorting_KS4.unit_ids[0])
print(spike_samples)
# spike times in seconds
spike_times = sorting_KS4.get_unit_spike_train(sorting_KS4.unit_ids[0], return_times=True)
print(spike_times)[ 11944 13351 17203 21010 21431 21699 23317 23525 24834
25178 25930 28148 28431 46451 70944 106230 107262 114727
114821 116269 116312 118030 118641 119830 121003 122589 126072
126182 126537 183797 207124 208035 234818 241285 241458 256826
262458 262929 285663 322522 328635 336374 344373 366096 366144
379907 389504 401868 404534 415834 447497 467934 479235 515437
538823 541444 542424 545688 572368 576636 588228 588403 608441
617525 639726 639990 652053 680667 693364 711098 745436 750567
789173 837537 844079 844137 858332 859308 881849 884602 895992
898471 905275 909535 912418 912975 916528 919040 919458 919708
921683 922114 935298 936539 936709 944984 946221 948130 962186
962288 969110 976276 980300 988859 992042 992154 994630 994871
1003368 1011750 1030082 1030207 1032570 1055426 1056145 1056330 1058439
1058775 1060154 1065934 1090224 1090633 1091636 1094247 1096035 1098543
1099027 1099267 1105028 1106427 1107354 1111427 1112700 1113418 1116110
1118885 1119550 1144119 1204551 1210687 1215199 1242398 1268349 1268600
1268762 1270510 1270756 1278582 1283019 1292573 1295553 1311294 1312342
1314646 1315326 1319463 1347227 1349298 1357299 1369616 1371405 1373948
1374197 1380509 1383357 1383920 1385821 1388145 1393106 1400236 1401635
1402436 1402453 1416477 1419034 1439784 1451490 1463218 1467128 1497409
1514330 1514608 1514731 1515097 1515683 1515796 1515980 1516560 1517791
1523421 1524155 1524444 1528543 1542589 1543157 1543360 1543411 1543564
1543694 1543896 1544023 1544202 1544462 1544578 1544950 1545122 1545313
1545597 1545958 1546152 1546490 1546641 1546874 1548717 1557499 1557714
1557919 1583524 1601313 1624212 1632028 1633787 1634471 1644979 1645232
1660900 1661434 1688099 1689480 1693476 1698390 1699012 1699334 1699490
1699527 1700006 1700137 1700291 1700510 1700721 1700975 1701043 1701150
1701190 1701380 1701646 1701958 1703336 1703616 1703795 1703957 1704249
1711796 1716845 1718825 1719045 1720623 1747038 1776160 1776485 1776527
1784566 1785089 1785234 1785327 1798354 1798512 1798630 1798793 1799121]
[ 0.5972 0.66755 0.86015 1.0505 1.07155 1.08495 1.16585 1.17625
1.2417 1.2589 1.2965 1.4074 1.42155 2.32255 3.5472 5.3115
5.3631 5.73635 5.74105 5.81345 5.8156 5.9015 5.93205 5.9915
6.05015 6.12945 6.3036 6.3091 6.32685 9.18985 10.3562 10.40175
11.7409 12.06425 12.0729 12.8413 13.1229 13.14645 14.28315 16.1261
16.43175 16.8187 17.21865 18.3048 18.3072 18.99535 19.4752 20.0934
20.2267 20.7917 22.37485 23.3967 23.96175 25.77185 26.94115 27.0722
27.1212 27.2844 28.6184 28.8318 29.4114 29.42015 30.42205 30.87625
31.9863 31.9995 32.60265 34.03335 34.6682 35.5549 37.2718 37.52835
39.45865 41.87685 42.20395 42.20685 42.9166 42.9654 44.09245 44.2301
44.7996 44.92355 45.26375 45.47675 45.6209 45.64875 45.8264 45.952
45.9729 45.9854 46.08415 46.1057 46.7649 46.82695 46.83545 47.2492
47.31105 47.4065 48.1093 48.1144 48.4555 48.8138 49.015 49.44295
49.6021 49.6077 49.7315 49.74355 50.1684 50.5875 51.5041 51.51035
51.6285 52.7713 52.80725 52.8165 52.92195 52.93875 53.0077 53.2967
54.5112 54.53165 54.5818 54.71235 54.80175 54.92715 54.95135 54.96335
55.2514 55.32135 55.3677 55.57135 55.635 55.6709 55.8055 55.94425
55.9775 57.20595 60.22755 60.53435 60.75995 62.1199 63.41745 63.43
63.4381 63.5255 63.5378 63.9291 64.15095 64.62865 64.77765 65.5647
65.6171 65.7323 65.7663 65.97315 67.36135 67.4649 67.86495 68.4808
68.57025 68.6974 68.70985 69.02545 69.16785 69.196 69.29105 69.40725
69.6553 70.0118 70.08175 70.1218 70.12265 70.82385 70.9517 71.9892
72.5745 73.1609 73.3564 74.87045 75.7165 75.7304 75.73655 75.75485
75.78415 75.7898 75.799 75.828 75.88955 76.17105 76.20775 76.2222
76.42715 77.12945 77.15785 77.168 77.17055 77.1782 77.1847 77.1948
77.20115 77.2101 77.2231 77.2289 77.2475 77.2561 77.26565 77.27985
77.2979 77.3076 77.3245 77.33205 77.3437 77.43585 77.87495 77.8857
77.89595 79.1762 80.06565 81.2106 81.6014 81.68935 81.72355 82.24895
82.2616 83.045 83.0717 84.40495 84.474 84.6738 84.9195 84.9506
84.9667 84.9745 84.97635 85.0003 85.00685 85.01455 85.0255 85.03605
85.04875 85.05215 85.0575 85.0595 85.069 85.0823 85.0979 85.1668
85.1808 85.18975 85.19785 85.21245 85.5898 85.84225 85.94125 85.95225
86.03115 87.3519 88.808 88.82425 88.82635 89.2283 89.25445 89.2617
89.26635 89.9177 89.9256 89.9315 89.93965 89.95605]
Process the sorting object
As with recordings, we can manipulate Sorting objects, for example, slicing them in time:
# time slice: only keep the first second of spikes
sorting_KS4.frame_slice(start_frame=0, end_frame=int(recording_preprocessed.sampling_frequency))Unit IDs
- [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56]
Annotations
- phy_folder : /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'kilosort4', 'sorter_params': {'batch_size': 60000, 'nblocks': 1, 'Th_universal': 9, 'Th_learned': 8, 'nt': 61, 'shift': None, 'scale': None, 'batch_downsampling': 1, 'artifact_threshold': inf, 'nskip': 25, 'whitening_range': 32, 'highpass_cutoff': 300, 'binning_depth': 5, 'sig_interp': 20, 'drift_smoothing': [0.5, 0.5, 0.5], 'nt0min': None, 'dmin': None, 'dminx': 32, 'min_template_size': 10, 'template_sizes': 5, 'nearest_chans': 10, 'nearest_templates': 100, 'max_channel_distance': 32, 'max_peels': 100, 'templates_from_data': True, 'n_templates': 6, 'n_pcs': 6, 'Th_single_ch': 6, 'acg_threshold': 0.2, 'ccg_threshold': 0.25, 'cluster_neighbors': 10, 'cluster_downsampling': 20, 'max_cluster_subset': 25000, 'x_centers': None, 'cluster_init_seed': 5, 'duplicate_spike_ms': 0.25, 'position_limit': 100, 'do_CAR': True, 'invert_sign': False, 'save_extra_vars': False, 'save_preprocessed_copy': False, 'torch_device': 'auto', 'bad_channels': None, 'clear_cache': False, 'do_correction': False, 'skip_kilosort_preprocessing': False, 'keep_good_only': False, 'use_binary_file': True, 'delete_recording_dat': True, 'pool_engine': 'process', 'n_jobs': 0.5, 'chunk_duration': '1s', 'progress_bar': True, 'mp_context': None, 'max_threads_per_worker': 1}}, 'log': {'sorter_name': 'kilosort4', 'sorter_version': '4.1.7', 'datetime': '2026-10-15T14:48:27.917679', 'runtime_trace': ['2026-10-15 14:48:27,923 kilosort.run_kilosort INFO', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO Computing preprocessing variables.', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N samples: 1800000', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N seconds: 90.0', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N batches: 30', '2026-10-15 14:48:28,159 kilosort.run_kilosort INFO Preprocessing filters computed in 0.24s; total 0.24s', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG hp_filter shape: torch.Size([30122])', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG whiten_mat shape: torch.Size([58, 58])', '2026-10-15 14:48:28,258 kilosort.run_kilosort DEBUG First batch min, max: (np.float32(-3390.4734), np.float32(1657.6608))', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO Resource usage after preprocessing', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO CPU usage: 51.20 %', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,263 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,266 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,267 kilosort.run_kilosort INFO Computing drift correction.', '2026-10-15 14:48:28,268 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,268 kilosort.datashift INFO nblocks = 0, skipping drift correction', '2026-10-15 14:48:28,269 kilosort.run_kilosort INFO drift computed in 0.00s; total 0.35s', '2026-10-15 14:48:28,270 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO Resource usage after drift correction', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO Extracting spikes using templates', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,276 kilosort.spikedetect INFO Re-computing universal templates from data.', '2026-10-15 14:48:32,462 kilosort.spikedetect INFO Number of universal templates: 246', '2026-10-15 14:48:32,465 kilosort.spikedetect INFO Detecting spikes...', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Batch 0 of 29 (0.0%)', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG CPU usage: 46.60 %', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem used: 11.50 % | 1.80 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem avail: 13.82 / 15.61 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Batch 29 of 29 (96.7%)', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem used: 13.60 % | 2.12 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem avail: 13.49 / 15.61 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,675 kilosort.run_kilosort INFO 39391 spikes extracted in 129.40s; total 129.75s', '2026-10-15 14:50:37,675 kilosort.run_kilosort DEBUG st0 shape: (39391, 6)', '2026-10-15 14:50:37,676 kilosort.run_kilosort DEBUG tF shape: torch.Size([39391, 10, 6])', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO Resource usage after spike detect (univ)', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO Mem used: 13.30 % | 2.07 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO Mem avail: 13.55 / 15.61 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,687 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO First clustering', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:37,695 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4098, 60]) | ntemp: 8', '2026-10-15 14:50:38,674 kilosort.clustering_qr DEBUG Center 1 | Xd shape: torch.Size([346, 60]) | ntemp: 8', '2026-10-15 14:50:38,675 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([474, 66]) | ntemp: 8', '2026-10-15 14:50:38,679 kilosort.clustering_qr DEBUG Center 3 | Xd shape: torch.Size([450, 72]) | ntemp: 8', '2026-10-15 14:50:38,680 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([836, 72]) | ntemp: 8', '2026-10-15 14:50:38,681 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1366, 66]) | ntemp: 8', '2026-10-15 14:50:39,121 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([290, 72]) | ntemp: 8', '2026-10-15 14:50:39,122 kilosort.clustering_qr DEBUG Center 7 | Xd shape: torch.Size([268, 66]) | ntemp: 8', '2026-10-15 14:50:39,126 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([621, 66]) | ntemp: 8', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Cluster center: 9 (10/31)', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG CPU usage: 54.30 %', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,128 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([1802, 72]) | ntemp: 8', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1802])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1802, 72])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kn: 0.14 MB, shape: torch.Size([1802, 10])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG rows_neigh: 0.14 MB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG CPU usage: 77.40 %', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG CPU usage: 49.70 %', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,669 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([1164, 66]) | ntemp: 8', '2026-10-15 14:50:40,010 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([808, 72]) | ntemp: 8', '2026-10-15 14:50:40,011 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([868, 66]) | ntemp: 8', '2026-10-15 14:50:40,012 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1467, 72]) | ntemp: 8', '2026-10-15 14:50:40,421 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([484, 66]) | ntemp: 8', '2026-10-15 14:50:40,425 kilosort.clustering_qr DEBUG Center 15 | Xd shape: torch.Size([640, 72]) | ntemp: 8', '2026-10-15 14:50:40,426 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([644, 66]) | ntemp: 8', '2026-10-15 14:50:40,427 kilosort.clustering_qr DEBUG Center 17 | Xd shape: torch.Size([523, 72]) | ntemp: 8', '2026-10-15 14:50:40,431 kilosort.clustering_qr DEBUG Center 18 | Xd shape: torch.Size([670, 66]) | ntemp: 8', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Cluster center: 19 (20/31)', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG CPU usage: 58.00 %', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,433 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([1265, 66]) | ntemp: 8', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG ki: 0.00 MB, shape: torch.Size([1265])', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Xg: 0.32 MB, shape: torch.Size([1265, 66])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG kn: 0.10 MB, shape: torch.Size([1265, 10])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG rows_neigh: 0.10 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG tones2: 0.05 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG CPU usage: 81.60 %', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,830 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG CPU usage: 50.50 %', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,840 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([2486, 72]) | ntemp: 8', '2026-10-15 14:50:41,544 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1075, 72]) | ntemp: 8', '2026-10-15 14:50:41,865 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([1561, 72]) | ntemp: 8', '2026-10-15 14:50:42,298 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([1236, 72]) | ntemp: 8', '2026-10-15 14:50:42,695 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([1390, 66]) | ntemp: 8', '2026-10-15 14:50:43,084 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([4619, 66]) | ntemp: 8', '2026-10-15 14:50:44,242 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([1395, 66]) | ntemp: 8', '2026-10-15 14:50:44,672 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([362, 72]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([973, 60]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Cluster center: 29 (30/31)', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG CPU usage: 57.30 %', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([745, 60]) | ntemp: 8', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,676 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([4465, 60]) | ntemp: 6', '2026-10-15 14:50:45,783 kilosort.run_kilosort INFO 54 clusters found, in 8.10s; total 137.86s', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG clu shape: (39391,)', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG Wall shape: torch.Size([54, 58, 6])', '2026-10-15 14:50:45,784 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO Resource usage after first clustering', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO Mem used: 12.70 % | 1.98 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO Mem avail: 13.64 / 15.61 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:45,788 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:45,789 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:45,801 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,802 kilosort.run_kilosort INFO Extracting spikes using cluster waveforms', '2026-10-15 14:50:45,803 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Batch 0', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem used: 14.00 % | 2.19 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem avail: 13.43 / 15.61 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Batch 29', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem used: 13.70 % | 2.15 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem avail: 13.47 / 15.61 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:58,831 kilosort.run_kilosort INFO 64834 spikes extracted in 13.03s; total 150.91s', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG st shape: (64834, 3)', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG tF shape: torch.Size([64834, 10, 6])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iCC shape: torch.Size([10, 58])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iU shape: torch.Size([49])', '2026-10-15 14:50:58,832 kilosort.run_kilosort INFO', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO Resource usage after spike detect (learned)', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem used: 11.90 % | 1.87 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem avail: 13.75 / 15.61 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO Final clustering', '2026-10-15 14:51:00,186 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:00,192 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4594, 60]) | ntemp: 3', '2026-10-15 14:51:03,815 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([543, 60]) | ntemp: 1', '2026-10-15 14:51:03,817 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([2101, 66]) | ntemp: 3', '2026-10-15 14:51:04,434 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1421, 66]) | ntemp: 2', '2026-10-15 14:51:04,838 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([163, 60]) | ntemp: 1', '2026-10-15 14:51:04,839 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([1562, 66]) | ntemp: 2', '2026-10-15 14:51:05,257 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([2336, 60]) | ntemp: 2', '2026-10-15 14:51:05,854 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([2796, 66]) | ntemp: 2', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([468, 60]) | ntemp: 1', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Cluster center: 12 (10/25)', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG CPU usage: 39.20 %', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,575 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([1939, 66]) | ntemp: 3', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1939])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1939, 66])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG kn: 0.15 MB, shape: torch.Size([1939, 10])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG rows_neigh: 0.15 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,580 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG CPU usage: 86.50 %', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem used: 12.00 % | 1.88 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,116 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1006, 60]) | ntemp: 1', '2026-10-15 14:51:07,466 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([3234, 60]) | ntemp: 3', '2026-10-15 14:51:08,325 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([1275, 60]) | ntemp: 1', '2026-10-15 14:51:08,692 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([4417, 60]) | ntemp: 3', '2026-10-15 14:51:09,733 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([5354, 66]) | ntemp: 4', '2026-10-15 14:51:11,001 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1463, 66]) | ntemp: 2', '2026-10-15 14:51:11,448 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([474, 60]) | ntemp: 1', '2026-10-15 14:51:11,454 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([5871, 66]) | ntemp: 3', '2026-10-15 14:51:12,883 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([985, 66]) | ntemp: 2', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Cluster center: 25 (20/25)', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG CPU usage: 54.70 %', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,887 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([9376, 66]) | ntemp: 2', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ki: 0.04 MB, shape: torch.Size([9376])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Xg: 2.36 MB, shape: torch.Size([9376, 66])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kn: 0.72 MB, shape: torch.Size([9376, 10])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG rows_neigh: 0.72 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG tones2: 0.36 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,048 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,069 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([244, 60]) | ntemp: 1', '2026-10-15 14:51:15,070 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([956, 60]) | ntemp: 1', '2026-10-15 14:51:15,075 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([1596, 60]) | ntemp: 1', '2026-10-15 14:51:15,551 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([2395, 60]) | ntemp: 1', '2026-10-15 14:51:16,166 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([8265, 60]) | ntemp: 3', '2026-10-15 14:51:18,102 kilosort.run_kilosort INFO 58 clusters found, in 17.92s; total 170.18s', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG Wall shape: torch.Size([58, 58, 6])', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:51:18,114 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO Merging clusters', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,200 kilosort.run_kilosort INFO 57 units found, in 0.09s; total 170.28s', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG Wall shape: torch.Size([57, 58, 6])', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO Resource usage after clustering', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,204 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,206 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,207 kilosort.run_kilosort INFO Saving to phy and computing refractory periods', '2026-10-15 14:51:18,208 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG', '2026-10-15 14:51:18,210 kilosort.io DEBUG save_to_phy, whitening', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,210 kilosort.io DEBUG CPU usage: 66.70 %', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG', '2026-10-15 14:51:18,222 kilosort.io DEBUG save_to_phy, spike positions', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG', '2026-10-15 14:51:18,228 kilosort.io DEBUG save_to_phy, remove duplicates', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem used: 11.90 % | 1.85 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG', '2026-10-15 14:51:18,234 kilosort.io DEBUG save_to_phy, template props', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG', '2026-10-15 14:51:18,366 kilosort.io DEBUG save_to_phy, pc features', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG CPU usage: 39.60 %', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG', '2026-10-15 14:51:18,382 kilosort.io DEBUG save_to_phy, est contam', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG CPU usage: 28.60 %', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,383 kilosort.run_kilosort INFO 37 units found with good refractory periods', '2026-10-15 14:51:18,385 kilosort.run_kilosort INFO Exporting to Phy took: 0.18s', '2026-10-15 14:51:18,386 kilosort.run_kilosort INFO Total runtime: 170.46s = 00:02:50 h:m:s', '2026-10-15 14:51:18,387 kilosort.run_kilosort INFO Sorting output saved in: /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output.', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO Resource usage after saving', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,392 kilosort.run_kilosort INFO ********************************************************'], 'error': False, 'run_time': 170.475634007}}
Properties
original_cluster_id
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56]Amplitude
[11.2 19.4 10.9 10.1 9.6 14.7 16.9 13.3 10.2 12.2 10.6 9.9 12.6 10.6 10. 14.1 11.3 18.4 16.6 10.2 10.8 18.7 14.8 12. 23.2 15.4 10.4 10.5 18.5 9.6 17.9 9.8 10.1 15.1 9.8 13.5 10.3 14.9 12.6 16.7 9.9 14.4 10.8 21.7 10.7 11. 11.8 10.4 16.9 20. 10.1 15.4 10.3 11.4 10. 12.2 17.4]KSLabel
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']KSLabel_repeat
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']ContamPct
[ 19.6 3.2 51.9 0. 0. 0. 0. 9.1 22.2 102.6 10.6 64.9 32.6 12.5 0. 4.4 58.7 0. 64.5 26. 0. 34. 0. 33.1 0. 0. 0. 30.5 0. 84.2 0. 14.9 12.2 15.3 22.2 18.8 0. 3.7 8.3 0. 24.2 31.9 14.7 0. 53.6 8.7 41.8 80.2 0.8 8.4 17.2 0. 11.1 22.3 37.6 2.4 1.1]main_channel_id
[61 60 57 55 50 52 53 50 51 49 44 45 42 44 41 41 40 41 39 37 36 37 36 38 35 35 35 32 32 33 28 26 22 23 23 21 20 20 21 19 19 18 16 14 14 15 13 11 10 9 6 3 4 1 1 0 0]Parent
- phy_folder : /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'kilosort4', 'sorter_params': {'batch_size': 60000, 'nblocks': 1, 'Th_universal': 9, 'Th_learned': 8, 'nt': 61, 'shift': None, 'scale': None, 'batch_downsampling': 1, 'artifact_threshold': inf, 'nskip': 25, 'whitening_range': 32, 'highpass_cutoff': 300, 'binning_depth': 5, 'sig_interp': 20, 'drift_smoothing': [0.5, 0.5, 0.5], 'nt0min': None, 'dmin': None, 'dminx': 32, 'min_template_size': 10, 'template_sizes': 5, 'nearest_chans': 10, 'nearest_templates': 100, 'max_channel_distance': 32, 'max_peels': 100, 'templates_from_data': True, 'n_templates': 6, 'n_pcs': 6, 'Th_single_ch': 6, 'acg_threshold': 0.2, 'ccg_threshold': 0.25, 'cluster_neighbors': 10, 'cluster_downsampling': 20, 'max_cluster_subset': 25000, 'x_centers': None, 'cluster_init_seed': 5, 'duplicate_spike_ms': 0.25, 'position_limit': 100, 'do_CAR': True, 'invert_sign': False, 'save_extra_vars': False, 'save_preprocessed_copy': False, 'torch_device': 'auto', 'bad_channels': None, 'clear_cache': False, 'do_correction': False, 'skip_kilosort_preprocessing': False, 'keep_good_only': False, 'use_binary_file': True, 'delete_recording_dat': True, 'pool_engine': 'process', 'n_jobs': 0.5, 'chunk_duration': '1s', 'progress_bar': True, 'mp_context': None, 'max_threads_per_worker': 1}}, 'log': {'sorter_name': 'kilosort4', 'sorter_version': '4.1.7', 'datetime': '2026-10-15T14:48:27.917679', 'runtime_trace': ['2026-10-15 14:48:27,923 kilosort.run_kilosort INFO', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO Computing preprocessing variables.', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N samples: 1800000', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N seconds: 90.0', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N batches: 30', '2026-10-15 14:48:28,159 kilosort.run_kilosort INFO Preprocessing filters computed in 0.24s; total 0.24s', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG hp_filter shape: torch.Size([30122])', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG whiten_mat shape: torch.Size([58, 58])', '2026-10-15 14:48:28,258 kilosort.run_kilosort DEBUG First batch min, max: (np.float32(-3390.4734), np.float32(1657.6608))', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO Resource usage after preprocessing', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO CPU usage: 51.20 %', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,263 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,266 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,267 kilosort.run_kilosort INFO Computing drift correction.', '2026-10-15 14:48:28,268 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,268 kilosort.datashift INFO nblocks = 0, skipping drift correction', '2026-10-15 14:48:28,269 kilosort.run_kilosort INFO drift computed in 0.00s; total 0.35s', '2026-10-15 14:48:28,270 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO Resource usage after drift correction', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO Extracting spikes using templates', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,276 kilosort.spikedetect INFO Re-computing universal templates from data.', '2026-10-15 14:48:32,462 kilosort.spikedetect INFO Number of universal templates: 246', '2026-10-15 14:48:32,465 kilosort.spikedetect INFO Detecting spikes...', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Batch 0 of 29 (0.0%)', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG CPU usage: 46.60 %', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem used: 11.50 % | 1.80 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem avail: 13.82 / 15.61 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Batch 29 of 29 (96.7%)', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem used: 13.60 % | 2.12 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem avail: 13.49 / 15.61 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,675 kilosort.run_kilosort INFO 39391 spikes extracted in 129.40s; total 129.75s', '2026-10-15 14:50:37,675 kilosort.run_kilosort DEBUG st0 shape: (39391, 6)', '2026-10-15 14:50:37,676 kilosort.run_kilosort DEBUG tF shape: torch.Size([39391, 10, 6])', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO Resource usage after spike detect (univ)', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO Mem used: 13.30 % | 2.07 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO Mem avail: 13.55 / 15.61 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,687 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO First clustering', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:37,695 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4098, 60]) | ntemp: 8', '2026-10-15 14:50:38,674 kilosort.clustering_qr DEBUG Center 1 | Xd shape: torch.Size([346, 60]) | ntemp: 8', '2026-10-15 14:50:38,675 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([474, 66]) | ntemp: 8', '2026-10-15 14:50:38,679 kilosort.clustering_qr DEBUG Center 3 | Xd shape: torch.Size([450, 72]) | ntemp: 8', '2026-10-15 14:50:38,680 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([836, 72]) | ntemp: 8', '2026-10-15 14:50:38,681 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1366, 66]) | ntemp: 8', '2026-10-15 14:50:39,121 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([290, 72]) | ntemp: 8', '2026-10-15 14:50:39,122 kilosort.clustering_qr DEBUG Center 7 | Xd shape: torch.Size([268, 66]) | ntemp: 8', '2026-10-15 14:50:39,126 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([621, 66]) | ntemp: 8', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Cluster center: 9 (10/31)', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG CPU usage: 54.30 %', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,128 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([1802, 72]) | ntemp: 8', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1802])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1802, 72])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kn: 0.14 MB, shape: torch.Size([1802, 10])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG rows_neigh: 0.14 MB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG CPU usage: 77.40 %', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG CPU usage: 49.70 %', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,669 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([1164, 66]) | ntemp: 8', '2026-10-15 14:50:40,010 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([808, 72]) | ntemp: 8', '2026-10-15 14:50:40,011 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([868, 66]) | ntemp: 8', '2026-10-15 14:50:40,012 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1467, 72]) | ntemp: 8', '2026-10-15 14:50:40,421 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([484, 66]) | ntemp: 8', '2026-10-15 14:50:40,425 kilosort.clustering_qr DEBUG Center 15 | Xd shape: torch.Size([640, 72]) | ntemp: 8', '2026-10-15 14:50:40,426 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([644, 66]) | ntemp: 8', '2026-10-15 14:50:40,427 kilosort.clustering_qr DEBUG Center 17 | Xd shape: torch.Size([523, 72]) | ntemp: 8', '2026-10-15 14:50:40,431 kilosort.clustering_qr DEBUG Center 18 | Xd shape: torch.Size([670, 66]) | ntemp: 8', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Cluster center: 19 (20/31)', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG CPU usage: 58.00 %', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,433 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([1265, 66]) | ntemp: 8', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG ki: 0.00 MB, shape: torch.Size([1265])', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Xg: 0.32 MB, shape: torch.Size([1265, 66])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG kn: 0.10 MB, shape: torch.Size([1265, 10])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG rows_neigh: 0.10 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG tones2: 0.05 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG CPU usage: 81.60 %', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,830 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG CPU usage: 50.50 %', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,840 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([2486, 72]) | ntemp: 8', '2026-10-15 14:50:41,544 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1075, 72]) | ntemp: 8', '2026-10-15 14:50:41,865 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([1561, 72]) | ntemp: 8', '2026-10-15 14:50:42,298 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([1236, 72]) | ntemp: 8', '2026-10-15 14:50:42,695 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([1390, 66]) | ntemp: 8', '2026-10-15 14:50:43,084 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([4619, 66]) | ntemp: 8', '2026-10-15 14:50:44,242 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([1395, 66]) | ntemp: 8', '2026-10-15 14:50:44,672 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([362, 72]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([973, 60]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Cluster center: 29 (30/31)', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG CPU usage: 57.30 %', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([745, 60]) | ntemp: 8', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,676 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([4465, 60]) | ntemp: 6', '2026-10-15 14:50:45,783 kilosort.run_kilosort INFO 54 clusters found, in 8.10s; total 137.86s', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG clu shape: (39391,)', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG Wall shape: torch.Size([54, 58, 6])', '2026-10-15 14:50:45,784 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO Resource usage after first clustering', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO Mem used: 12.70 % | 1.98 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO Mem avail: 13.64 / 15.61 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:45,788 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:45,789 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:45,801 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,802 kilosort.run_kilosort INFO Extracting spikes using cluster waveforms', '2026-10-15 14:50:45,803 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Batch 0', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem used: 14.00 % | 2.19 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem avail: 13.43 / 15.61 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Batch 29', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem used: 13.70 % | 2.15 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem avail: 13.47 / 15.61 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:58,831 kilosort.run_kilosort INFO 64834 spikes extracted in 13.03s; total 150.91s', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG st shape: (64834, 3)', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG tF shape: torch.Size([64834, 10, 6])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iCC shape: torch.Size([10, 58])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iU shape: torch.Size([49])', '2026-10-15 14:50:58,832 kilosort.run_kilosort INFO', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO Resource usage after spike detect (learned)', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem used: 11.90 % | 1.87 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem avail: 13.75 / 15.61 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO Final clustering', '2026-10-15 14:51:00,186 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:00,192 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4594, 60]) | ntemp: 3', '2026-10-15 14:51:03,815 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([543, 60]) | ntemp: 1', '2026-10-15 14:51:03,817 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([2101, 66]) | ntemp: 3', '2026-10-15 14:51:04,434 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1421, 66]) | ntemp: 2', '2026-10-15 14:51:04,838 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([163, 60]) | ntemp: 1', '2026-10-15 14:51:04,839 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([1562, 66]) | ntemp: 2', '2026-10-15 14:51:05,257 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([2336, 60]) | ntemp: 2', '2026-10-15 14:51:05,854 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([2796, 66]) | ntemp: 2', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([468, 60]) | ntemp: 1', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Cluster center: 12 (10/25)', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG CPU usage: 39.20 %', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,575 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([1939, 66]) | ntemp: 3', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1939])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1939, 66])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG kn: 0.15 MB, shape: torch.Size([1939, 10])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG rows_neigh: 0.15 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,580 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG CPU usage: 86.50 %', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem used: 12.00 % | 1.88 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,116 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1006, 60]) | ntemp: 1', '2026-10-15 14:51:07,466 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([3234, 60]) | ntemp: 3', '2026-10-15 14:51:08,325 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([1275, 60]) | ntemp: 1', '2026-10-15 14:51:08,692 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([4417, 60]) | ntemp: 3', '2026-10-15 14:51:09,733 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([5354, 66]) | ntemp: 4', '2026-10-15 14:51:11,001 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1463, 66]) | ntemp: 2', '2026-10-15 14:51:11,448 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([474, 60]) | ntemp: 1', '2026-10-15 14:51:11,454 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([5871, 66]) | ntemp: 3', '2026-10-15 14:51:12,883 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([985, 66]) | ntemp: 2', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Cluster center: 25 (20/25)', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG CPU usage: 54.70 %', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,887 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([9376, 66]) | ntemp: 2', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ki: 0.04 MB, shape: torch.Size([9376])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Xg: 2.36 MB, shape: torch.Size([9376, 66])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kn: 0.72 MB, shape: torch.Size([9376, 10])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG rows_neigh: 0.72 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG tones2: 0.36 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,048 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,069 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([244, 60]) | ntemp: 1', '2026-10-15 14:51:15,070 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([956, 60]) | ntemp: 1', '2026-10-15 14:51:15,075 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([1596, 60]) | ntemp: 1', '2026-10-15 14:51:15,551 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([2395, 60]) | ntemp: 1', '2026-10-15 14:51:16,166 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([8265, 60]) | ntemp: 3', '2026-10-15 14:51:18,102 kilosort.run_kilosort INFO 58 clusters found, in 17.92s; total 170.18s', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG Wall shape: torch.Size([58, 58, 6])', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:51:18,114 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO Merging clusters', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,200 kilosort.run_kilosort INFO 57 units found, in 0.09s; total 170.28s', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG Wall shape: torch.Size([57, 58, 6])', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO Resource usage after clustering', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,204 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,206 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,207 kilosort.run_kilosort INFO Saving to phy and computing refractory periods', '2026-10-15 14:51:18,208 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG', '2026-10-15 14:51:18,210 kilosort.io DEBUG save_to_phy, whitening', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,210 kilosort.io DEBUG CPU usage: 66.70 %', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG', '2026-10-15 14:51:18,222 kilosort.io DEBUG save_to_phy, spike positions', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG', '2026-10-15 14:51:18,228 kilosort.io DEBUG save_to_phy, remove duplicates', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem used: 11.90 % | 1.85 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG', '2026-10-15 14:51:18,234 kilosort.io DEBUG save_to_phy, template props', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG', '2026-10-15 14:51:18,366 kilosort.io DEBUG save_to_phy, pc features', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG CPU usage: 39.60 %', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG', '2026-10-15 14:51:18,382 kilosort.io DEBUG save_to_phy, est contam', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG CPU usage: 28.60 %', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,383 kilosort.run_kilosort INFO 37 units found with good refractory periods', '2026-10-15 14:51:18,385 kilosort.run_kilosort INFO Exporting to Phy took: 0.18s', '2026-10-15 14:51:18,386 kilosort.run_kilosort INFO Total runtime: 170.46s = 00:02:50 h:m:s', '2026-10-15 14:51:18,387 kilosort.run_kilosort INFO Sorting output saved in: /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output.', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO Resource usage after saving', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,392 kilosort.run_kilosort INFO ********************************************************'], 'error': False, 'run_time': 170.475634007}}
Unit IDs
- [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56]
Annotations
Properties
original_cluster_id
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56]Amplitude
[11.2 19.4 10.9 10.1 9.6 14.7 16.9 13.3 10.2 12.2 10.6 9.9 12.6 10.6 10. 14.1 11.3 18.4 16.6 10.2 10.8 18.7 14.8 12. 23.2 15.4 10.4 10.5 18.5 9.6 17.9 9.8 10.1 15.1 9.8 13.5 10.3 14.9 12.6 16.7 9.9 14.4 10.8 21.7 10.7 11. 11.8 10.4 16.9 20. 10.1 15.4 10.3 11.4 10. 12.2 17.4]KSLabel
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']KSLabel_repeat
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']ContamPct
[ 19.6 3.2 51.9 0. 0. 0. 0. 9.1 22.2 102.6 10.6 64.9 32.6 12.5 0. 4.4 58.7 0. 64.5 26. 0. 34. 0. 33.1 0. 0. 0. 30.5 0. 84.2 0. 14.9 12.2 15.3 22.2 18.8 0. 3.7 8.3 0. 24.2 31.9 14.7 0. 53.6 8.7 41.8 80.2 0.8 8.4 17.2 0. 11.1 22.3 37.6 2.4 1.1]main_channel_id
[61 60 57 55 50 52 53 50 51 49 44 45 42 44 41 41 40 41 39 37 36 37 36 38 35 35 35 32 32 33 28 26 22 23 23 21 20 20 21 19 19 18 16 14 14 15 13 11 10 9 6 3 4 1 1 0 0]Save to the internal SpikeInterface format
_ = sorting_KS4.save(folder="results/sorting_KS4", overwrite=True)
_ = sorting_LUPIN.save(folder="results/sorting_LUPIN", overwrite=True)
_ = sorting_SC2.save(folder="results/sorting_SC2", overwrite=True)
# And reload
sorting_KS4 = si.load("results/sorting_KS4")
sorting_KS4/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/basesorting.py:646: UserWarning: The recording registered to this sorting object will not be saved to disk. Reloading the sorting later will not include the recording
warnings.warn(
Unit IDs
- [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56]
Annotations
- phy_folder : /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output
- __sorting_info__ : {'recording': {'class': 'spikeinterface.core.binaryfolder.BinaryFolderRecording', 'module': 'spikeinterface', 'version': '0.105.2', 'kwargs': {'folder_path': '/home/runner/work/course_ephys_osss/course_ephys_osss/book/data/preprocessed-dandiset-000939'}, 'annotations': {'is_filtered': True}, 'properties': {'group': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_uV': [0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195, 0.195], 'offset_to_uV': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'gain_to_physical_unit': None, 'offset_to_physical_unit': None, 'physical_unit': None}, 'relative_paths': False, 'probegroup': {'probes': [{'ndim': 2, 'si_units': 'um', 'annotations': {}, 'contact_annotations': {}, 'contact_positions': [[22.5, 787.5], [0.0, 775.0], [22.5, 762.5], [0.0, 750.0], [22.5, 737.5], [0.0, 725.0], [22.5, 712.5], [0.0, 700.0], [22.5, 687.5], [0.0, 675.0], [22.5, 662.5], [0.0, 650.0], [22.5, 637.5], [0.0, 625.0], [22.5, 612.5], [0.0, 600.0], [22.5, 587.5], [22.5, 562.5], [0.0, 550.0], [22.5, 537.5], [0.0, 525.0], [22.5, 512.5], [0.0, 500.0], [22.5, 487.5], [0.0, 475.0], [22.5, 462.5], [0.0, 450.0], [22.5, 437.5], [0.0, 425.0], [0.0, 400.0], [22.5, 387.5], [0.0, 375.0], [0.0, 350.0], [22.5, 337.5], [0.0, 325.0], [22.5, 312.5], [0.0, 300.0], [22.5, 287.5], [0.0, 275.0], [22.5, 262.5], [0.0, 250.0], [22.5, 237.5], [0.0, 225.0], [22.5, 212.5], [0.0, 200.0], [22.5, 187.5], [0.0, 175.0], [22.5, 162.5], [0.0, 150.0], [22.5, 137.5], [0.0, 125.0], [22.5, 112.5], [0.0, 100.0], [0.0, 75.0], [22.5, 62.5], [0.0, 50.0], [22.5, 37.5], [0.0, 25.0]], 'contact_plane_axes': [[[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0]]], 'contact_shapes': ['circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle', 'circle'], 'contact_shape_params': [{'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}, {'radius': 1.0}], 'device_channel_indices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57], 'contact_ids': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '31', '32', '33', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '57', '58', '59', '60', '61']}], 'probe_ids': ['0']}}, 'params': {'sorter_name': 'kilosort4', 'sorter_params': {'batch_size': 60000, 'nblocks': 1, 'Th_universal': 9, 'Th_learned': 8, 'nt': 61, 'shift': None, 'scale': None, 'batch_downsampling': 1, 'artifact_threshold': inf, 'nskip': 25, 'whitening_range': 32, 'highpass_cutoff': 300, 'binning_depth': 5, 'sig_interp': 20, 'drift_smoothing': [0.5, 0.5, 0.5], 'nt0min': None, 'dmin': None, 'dminx': 32, 'min_template_size': 10, 'template_sizes': 5, 'nearest_chans': 10, 'nearest_templates': 100, 'max_channel_distance': 32, 'max_peels': 100, 'templates_from_data': True, 'n_templates': 6, 'n_pcs': 6, 'Th_single_ch': 6, 'acg_threshold': 0.2, 'ccg_threshold': 0.25, 'cluster_neighbors': 10, 'cluster_downsampling': 20, 'max_cluster_subset': 25000, 'x_centers': None, 'cluster_init_seed': 5, 'duplicate_spike_ms': 0.25, 'position_limit': 100, 'do_CAR': True, 'invert_sign': False, 'save_extra_vars': False, 'save_preprocessed_copy': False, 'torch_device': 'auto', 'bad_channels': None, 'clear_cache': False, 'do_correction': False, 'skip_kilosort_preprocessing': False, 'keep_good_only': False, 'use_binary_file': True, 'delete_recording_dat': True, 'pool_engine': 'process', 'n_jobs': 0.5, 'chunk_duration': '1s', 'progress_bar': True, 'mp_context': None, 'max_threads_per_worker': 1}}, 'log': {'sorter_name': 'kilosort4', 'sorter_version': '4.1.7', 'datetime': '2026-10-15T14:48:27.917679', 'runtime_trace': ['2026-10-15 14:48:27,923 kilosort.run_kilosort INFO', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO Computing preprocessing variables.', '2026-10-15 14:48:27,924 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N samples: 1800000', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N seconds: 90.0', '2026-10-15 14:48:27,927 kilosort.run_kilosort INFO N batches: 30', '2026-10-15 14:48:28,159 kilosort.run_kilosort INFO Preprocessing filters computed in 0.24s; total 0.24s', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG hp_filter shape: torch.Size([30122])', '2026-10-15 14:48:28,160 kilosort.run_kilosort DEBUG whiten_mat shape: torch.Size([58, 58])', '2026-10-15 14:48:28,258 kilosort.run_kilosort DEBUG First batch min, max: (np.float32(-3390.4734), np.float32(1657.6608))', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,259 kilosort.run_kilosort INFO Resource usage after preprocessing', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,260 kilosort.run_kilosort INFO CPU usage: 51.20 %', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,261 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,262 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,263 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,266 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,267 kilosort.run_kilosort INFO Computing drift correction.', '2026-10-15 14:48:28,268 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,268 kilosort.datashift INFO nblocks = 0, skipping drift correction', '2026-10-15 14:48:28,269 kilosort.run_kilosort INFO drift computed in 0.00s; total 0.35s', '2026-10-15 14:48:28,270 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO Resource usage after drift correction', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,271 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:48:28,272 kilosort.run_kilosort INFO Mem avail: 13.79 / 15.61 GB', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:48:28,273 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:48:28,274 kilosort.run_kilosort INFO', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO Extracting spikes using templates', '2026-10-15 14:48:28,275 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:48:28,276 kilosort.spikedetect INFO Re-computing universal templates from data.', '2026-10-15 14:48:32,462 kilosort.spikedetect INFO Number of universal templates: 246', '2026-10-15 14:48:32,465 kilosort.spikedetect INFO Detecting spikes...', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Batch 0 of 29 (0.0%)', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG CPU usage: 46.60 %', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem used: 11.50 % | 1.80 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG Mem avail: 13.82 / 15.61 GB', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:48:32,467 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:48:32,468 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Batch 29 of 29 (96.7%)', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem used: 13.60 % | 2.12 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG Mem avail: 13.49 / 15.61 GB', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ------------------------------------------------------', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU usage: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG GPU memory: N/A', '2026-10-15 14:50:37,674 kilosort.spikedetect DEBUG ********************************************************', '2026-10-15 14:50:37,675 kilosort.run_kilosort INFO 39391 spikes extracted in 129.40s; total 129.75s', '2026-10-15 14:50:37,675 kilosort.run_kilosort DEBUG st0 shape: (39391, 6)', '2026-10-15 14:50:37,676 kilosort.run_kilosort DEBUG tF shape: torch.Size([39391, 10, 6])', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO Resource usage after spike detect (univ)', '2026-10-15 14:50:37,676 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:37,677 kilosort.run_kilosort INFO Mem used: 13.30 % | 2.07 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO Mem avail: 13.55 / 15.61 GB', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:37,678 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:37,679 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:37,687 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:37,688 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO First clustering', '2026-10-15 14:50:37,688 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:37,695 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4098, 60]) | ntemp: 8', '2026-10-15 14:50:38,674 kilosort.clustering_qr DEBUG Center 1 | Xd shape: torch.Size([346, 60]) | ntemp: 8', '2026-10-15 14:50:38,675 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([474, 66]) | ntemp: 8', '2026-10-15 14:50:38,679 kilosort.clustering_qr DEBUG Center 3 | Xd shape: torch.Size([450, 72]) | ntemp: 8', '2026-10-15 14:50:38,680 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([836, 72]) | ntemp: 8', '2026-10-15 14:50:38,681 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1366, 66]) | ntemp: 8', '2026-10-15 14:50:39,121 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([290, 72]) | ntemp: 8', '2026-10-15 14:50:39,122 kilosort.clustering_qr DEBUG Center 7 | Xd shape: torch.Size([268, 66]) | ntemp: 8', '2026-10-15 14:50:39,126 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([621, 66]) | ntemp: 8', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Cluster center: 9 (10/31)', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG CPU usage: 54.30 %', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,127 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,128 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([1802, 72]) | ntemp: 8', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1802])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1802, 72])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG kn: 0.14 MB, shape: torch.Size([1802, 10])', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG rows_neigh: 0.14 MB', '2026-10-15 14:50:39,134 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,135 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,136 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG CPU usage: 77.40 %', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,290 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([91])', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG CPU usage: 49.70 %', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,660 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.05 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG Mem avail: 13.56 / 15.61 GB', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:39,667 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:39,669 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([1164, 66]) | ntemp: 8', '2026-10-15 14:50:40,010 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([808, 72]) | ntemp: 8', '2026-10-15 14:50:40,011 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([868, 66]) | ntemp: 8', '2026-10-15 14:50:40,012 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1467, 72]) | ntemp: 8', '2026-10-15 14:50:40,421 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([484, 66]) | ntemp: 8', '2026-10-15 14:50:40,425 kilosort.clustering_qr DEBUG Center 15 | Xd shape: torch.Size([640, 72]) | ntemp: 8', '2026-10-15 14:50:40,426 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([644, 66]) | ntemp: 8', '2026-10-15 14:50:40,427 kilosort.clustering_qr DEBUG Center 17 | Xd shape: torch.Size([523, 72]) | ntemp: 8', '2026-10-15 14:50:40,431 kilosort.clustering_qr DEBUG Center 18 | Xd shape: torch.Size([670, 66]) | ntemp: 8', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Cluster center: 19 (20/31)', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG CPU usage: 58.00 %', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,432 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,433 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([1265, 66]) | ntemp: 8', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG ki: 0.00 MB, shape: torch.Size([1265])', '2026-10-15 14:50:40,438 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Xg: 0.32 MB, shape: torch.Size([1265, 66])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG kn: 0.10 MB, shape: torch.Size([1265, 10])', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG rows_neigh: 0.10 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG tones2: 0.05 MB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,439 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,444 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG CPU usage: 81.60 %', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,566 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,830 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([64])', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG CPU usage: 50.50 %', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,831 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem used: 13.10 % | 2.04 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG Mem avail: 13.57 / 15.61 GB', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:40,838 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:40,840 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([2486, 72]) | ntemp: 8', '2026-10-15 14:50:41,544 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1075, 72]) | ntemp: 8', '2026-10-15 14:50:41,865 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([1561, 72]) | ntemp: 8', '2026-10-15 14:50:42,298 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([1236, 72]) | ntemp: 8', '2026-10-15 14:50:42,695 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([1390, 66]) | ntemp: 8', '2026-10-15 14:50:43,084 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([4619, 66]) | ntemp: 8', '2026-10-15 14:50:44,242 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([1395, 66]) | ntemp: 8', '2026-10-15 14:50:44,672 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([362, 72]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([973, 60]) | ntemp: 8', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Cluster center: 29 (30/31)', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG CPU usage: 57.30 %', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,673 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([745, 60]) | ntemp: 8', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem used: 12.70 % | 1.99 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG Mem avail: 13.63 / 15.61 GB', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:50:44,674 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:50:44,676 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([4465, 60]) | ntemp: 6', '2026-10-15 14:50:45,783 kilosort.run_kilosort INFO 54 clusters found, in 8.10s; total 137.86s', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG clu shape: (39391,)', '2026-10-15 14:50:45,784 kilosort.run_kilosort DEBUG Wall shape: torch.Size([54, 58, 6])', '2026-10-15 14:50:45,784 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO Resource usage after first clustering', '2026-10-15 14:50:45,785 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:50:45,786 kilosort.run_kilosort INFO Mem used: 12.70 % | 1.98 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO Mem avail: 13.64 / 15.61 GB', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:45,787 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:45,788 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:45,789 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:45,801 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:45,801 kilosort.run_kilosort INFO', '2026-10-15 14:50:45,802 kilosort.run_kilosort INFO Extracting spikes using cluster waveforms', '2026-10-15 14:50:45,803 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Batch 0', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG CPU usage: 100.00 %', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem used: 14.00 % | 2.19 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG Mem avail: 13.43 / 15.61 GB', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:45,827 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Batch 29', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG CPU usage: 50.30 %', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem used: 13.70 % | 2.15 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG Mem avail: 13.47 / 15.61 GB', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ------------------------------------------------------', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU usage: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG GPU memory: N/A', '2026-10-15 14:50:58,816 kilosort.template_matching DEBUG ********************************************************', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:50:58,831 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:50:58,831 kilosort.run_kilosort INFO 64834 spikes extracted in 13.03s; total 150.91s', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG st shape: (64834, 3)', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG tF shape: torch.Size([64834, 10, 6])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iCC shape: torch.Size([10, 58])', '2026-10-15 14:50:58,832 kilosort.run_kilosort DEBUG iU shape: torch.Size([49])', '2026-10-15 14:50:58,832 kilosort.run_kilosort INFO', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO Resource usage after spike detect (learned)', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:50:58,833 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem used: 11.90 % | 1.87 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO Mem avail: 13.75 / 15.61 GB', '2026-10-15 14:50:58,834 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:50:58,835 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO', '2026-10-15 14:51:00,185 kilosort.run_kilosort INFO Final clustering', '2026-10-15 14:51:00,186 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:00,192 kilosort.clustering_qr DEBUG Center 0 | Xd shape: torch.Size([4594, 60]) | ntemp: 3', '2026-10-15 14:51:03,815 kilosort.clustering_qr DEBUG Center 2 | Xd shape: torch.Size([543, 60]) | ntemp: 1', '2026-10-15 14:51:03,817 kilosort.clustering_qr DEBUG Center 4 | Xd shape: torch.Size([2101, 66]) | ntemp: 3', '2026-10-15 14:51:04,434 kilosort.clustering_qr DEBUG Center 5 | Xd shape: torch.Size([1421, 66]) | ntemp: 2', '2026-10-15 14:51:04,838 kilosort.clustering_qr DEBUG Center 6 | Xd shape: torch.Size([163, 60]) | ntemp: 1', '2026-10-15 14:51:04,839 kilosort.clustering_qr DEBUG Center 8 | Xd shape: torch.Size([1562, 66]) | ntemp: 2', '2026-10-15 14:51:05,257 kilosort.clustering_qr DEBUG Center 9 | Xd shape: torch.Size([2336, 60]) | ntemp: 2', '2026-10-15 14:51:05,854 kilosort.clustering_qr DEBUG Center 10 | Xd shape: torch.Size([2796, 66]) | ntemp: 2', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Center 11 | Xd shape: torch.Size([468, 60]) | ntemp: 1', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Cluster center: 12 (10/25)', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG CPU usage: 39.20 %', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,573 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,575 kilosort.clustering_qr DEBUG Center 12 | Xd shape: torch.Size([1939, 66]) | ntemp: 3', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ki: 0.01 MB, shape: torch.Size([1939])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:06,578 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Xg: 0.49 MB, shape: torch.Size([1939, 66])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG kn: 0.15 MB, shape: torch.Size([1939, 10])', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG rows_neigh: 0.15 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG tones2: 0.07 MB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,579 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,580 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,581 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG CPU usage: 86.50 %', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:06,711 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:06,712 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([97])', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem used: 12.10 % | 1.89 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,107 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG CPU usage: 100.00 %', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem used: 12.00 % | 1.88 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG Mem avail: 13.73 / 15.61 GB', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:07,114 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:07,116 kilosort.clustering_qr DEBUG Center 13 | Xd shape: torch.Size([1006, 60]) | ntemp: 1', '2026-10-15 14:51:07,466 kilosort.clustering_qr DEBUG Center 14 | Xd shape: torch.Size([3234, 60]) | ntemp: 3', '2026-10-15 14:51:08,325 kilosort.clustering_qr DEBUG Center 16 | Xd shape: torch.Size([1275, 60]) | ntemp: 1', '2026-10-15 14:51:08,692 kilosort.clustering_qr DEBUG Center 19 | Xd shape: torch.Size([4417, 60]) | ntemp: 3', '2026-10-15 14:51:09,733 kilosort.clustering_qr DEBUG Center 20 | Xd shape: torch.Size([5354, 66]) | ntemp: 4', '2026-10-15 14:51:11,001 kilosort.clustering_qr DEBUG Center 21 | Xd shape: torch.Size([1463, 66]) | ntemp: 2', '2026-10-15 14:51:11,448 kilosort.clustering_qr DEBUG Center 22 | Xd shape: torch.Size([474, 60]) | ntemp: 1', '2026-10-15 14:51:11,454 kilosort.clustering_qr DEBUG Center 23 | Xd shape: torch.Size([5871, 66]) | ntemp: 3', '2026-10-15 14:51:12,883 kilosort.clustering_qr DEBUG Center 24 | Xd shape: torch.Size([985, 66]) | ntemp: 2', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Cluster center: 25 (20/25)', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG CPU usage: 54.70 %', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,884 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,887 kilosort.clustering_qr DEBUG Center 25 | Xd shape: torch.Size([9376, 66]) | ntemp: 2', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ki: 0.04 MB, shape: torch.Size([9376])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kj: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after Mstats', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Xg: 2.36 MB, shape: torch.Size([9376, 66])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG kn: 0.72 MB, shape: torch.Size([9376, 10])', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG rows_neigh: 0.72 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG tones2: 0.36 MB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG clustering_qr.cluster, after var init', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG CPU usage: 0.00 %', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,904 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,905 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG clustering_qr.kpp, after var init', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:12,906 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG clustering_qr.kpp, after loop', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem used: 11.70 % | 1.83 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG Mem avail: 13.78 / 15.61 GB', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:13,299 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,048 kilosort.clustering_qr DEBUG isub: 0.00 MB, shape: torch.Size([469])', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG clustering_qr.cluster, after isub loop', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG CPU usage: 50.30 %', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,049 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG clustering_qr.run, after iclust', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG CPU usage: 75.00 %', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ------------------------------------------------------', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU usage: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG GPU memory: N/A', '2026-10-15 14:51:15,067 kilosort.clustering_qr DEBUG ********************************************************', '2026-10-15 14:51:15,069 kilosort.clustering_qr DEBUG Center 26 | Xd shape: torch.Size([244, 60]) | ntemp: 1', '2026-10-15 14:51:15,070 kilosort.clustering_qr DEBUG Center 27 | Xd shape: torch.Size([956, 60]) | ntemp: 1', '2026-10-15 14:51:15,075 kilosort.clustering_qr DEBUG Center 28 | Xd shape: torch.Size([1596, 60]) | ntemp: 1', '2026-10-15 14:51:15,551 kilosort.clustering_qr DEBUG Center 29 | Xd shape: torch.Size([2395, 60]) | ntemp: 1', '2026-10-15 14:51:16,166 kilosort.clustering_qr DEBUG Center 30 | Xd shape: torch.Size([8265, 60]) | ntemp: 3', '2026-10-15 14:51:18,102 kilosort.run_kilosort INFO 58 clusters found, in 17.92s; total 170.18s', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,103 kilosort.run_kilosort DEBUG Wall shape: torch.Size([58, 58, 6])', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG Process thread count: 23', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG num torch threads: 2', '2026-10-15 14:51:18,114 kilosort.run_kilosort DEBUG --------------------', '', '2026-10-15 14:51:18,114 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO Merging clusters', '2026-10-15 14:51:18,115 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,200 kilosort.run_kilosort INFO 57 units found, in 0.09s; total 170.28s', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG clu shape: (64834,)', '2026-10-15 14:51:18,201 kilosort.run_kilosort DEBUG Wall shape: torch.Size([57, 58, 6])', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,201 kilosort.run_kilosort INFO Resource usage after clustering', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,202 kilosort.run_kilosort INFO CPU usage: 0.00 %', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,203 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,204 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,205 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,206 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,207 kilosort.run_kilosort INFO Saving to phy and computing refractory periods', '2026-10-15 14:51:18,208 kilosort.run_kilosort INFO ----------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG', '2026-10-15 14:51:18,210 kilosort.io DEBUG save_to_phy, whitening', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,210 kilosort.io DEBUG CPU usage: 66.70 %', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,210 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,210 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG', '2026-10-15 14:51:18,222 kilosort.io DEBUG save_to_phy, spike positions', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,222 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,222 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,222 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG', '2026-10-15 14:51:18,228 kilosort.io DEBUG save_to_phy, remove duplicates', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,228 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem used: 11.90 % | 1.85 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,228 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,228 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG', '2026-10-15 14:51:18,234 kilosort.io DEBUG save_to_phy, template props', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,234 kilosort.io DEBUG CPU usage: 50.00 %', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,234 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,234 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG', '2026-10-15 14:51:18,366 kilosort.io DEBUG save_to_phy, pc features', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,366 kilosort.io DEBUG CPU usage: 39.60 %', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,366 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,366 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG', '2026-10-15 14:51:18,382 kilosort.io DEBUG save_to_phy, est contam', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,382 kilosort.io DEBUG CPU usage: 28.60 %', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG Mem avail: 13.77 / 15.61 GB', '2026-10-15 14:51:18,382 kilosort.io DEBUG ------------------------------------------------------', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU usage: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG GPU memory: N/A', '2026-10-15 14:51:18,382 kilosort.io DEBUG ********************************************************', '2026-10-15 14:51:18,383 kilosort.run_kilosort INFO 37 units found with good refractory periods', '2026-10-15 14:51:18,385 kilosort.run_kilosort INFO Exporting to Phy took: 0.18s', '2026-10-15 14:51:18,386 kilosort.run_kilosort INFO Total runtime: 170.46s = 00:02:50 h:m:s', '2026-10-15 14:51:18,387 kilosort.run_kilosort INFO Sorting output saved in: /home/runner/work/course_ephys_osss/course_ephys_osss/book/results/sorter_KS4/sorter_output.', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO', '2026-10-15 14:51:18,388 kilosort.run_kilosort INFO Resource usage after saving', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO ********************************************************', '2026-10-15 14:51:18,389 kilosort.run_kilosort INFO CPU usage: 100.00 %', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem used: 11.80 % | 1.85 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO Mem avail: 13.76 / 15.61 GB', '2026-10-15 14:51:18,390 kilosort.run_kilosort INFO ------------------------------------------------------', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU usage: N/A', '2026-10-15 14:51:18,391 kilosort.run_kilosort INFO GPU memory: N/A', '2026-10-15 14:51:18,392 kilosort.run_kilosort INFO ********************************************************'], 'error': False, 'run_time': 170.475634007}}
Properties
KSLabel_repeat
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']ContamPct
[ 19.6 3.2 51.9 0. 0. 0. 0. 9.1 22.2 102.6 10.6 64.9 32.6 12.5 0. 4.4 58.7 0. 64.5 26. 0. 34. 0. 33.1 0. 0. 0. 30.5 0. 84.2 0. 14.9 12.2 15.3 22.2 18.8 0. 3.7 8.3 0. 24.2 31.9 14.7 0. 53.6 8.7 41.8 80.2 0.8 8.4 17.2 0. 11.1 22.3 37.6 2.4 1.1]main_channel_id
[61 60 57 55 50 52 53 50 51 49 44 45 42 44 41 41 40 41 39 37 36 37 36 38 35 35 35 32 32 33 28 26 22 23 23 21 20 20 21 19 19 18 16 14 14 15 13 11 10 9 6 3 4 1 1 0 0]original_cluster_id
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56]KSLabel
['good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'mua' 'good' 'mua' 'good' 'good' 'good' 'good' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good' 'mua' 'good' 'mua' 'mua' 'good' 'good' 'good' 'good' 'good' 'mua' 'mua' 'good' 'good']Amplitude
[11.2 19.4 10.9 10.1 9.6 14.7 16.9 13.3 10.2 12.2 10.6 9.9 12.6 10.6 10. 14.1 11.3 18.4 16.6 10.2 10.8 18.7 14.8 12. 23.2 15.4 10.4 10.5 18.5 9.6 17.9 9.8 10.1 15.1 9.8 13.5 10.3 14.9 12.6 16.7 9.9 14.4 10.8 21.7 10.7 11. 11.8 10.4 16.9 20. 10.1 15.4 10.3 11.4 10. 12.2 17.4]Plot rasters
si.plot_rasters(sorting_KS4, unit_ids=sorting_KS4.unit_ids[:20], time_range=(0, 5))<spikeinterface.widgets.rasters.RasterWidget at 0x7f34dcdf7b50>
4.7 Compare sorter outputs
Since different sorters detect and cluster spikes differently, it is useful to compare their outputs directly. SpikeInterface can match units across two (or more) sorting outputs based on spike train agreement.
comparison = si.compare_two_sorters(sorting_KS4, sorting_LUPIN, "KS4", "LUPIN")
w = si.plot_agreement_matrix(comparison)Multiple comparisons at once
We can also compare more than two sorting outputs simultaneously:
multi_comparison = si.compare_multiple_sorters(
sorting_list=[sorting_KS4, sorting_LUPIN, sorting_SC2],
name_list=["KS4", "LUPIN", "SC2"],
spiketrain_mode="union",
verbose=True,
n_jobs=1
)
w = si.plot_multicomparison_agreement(multi_comparison)
# plt.show(w.figure)
w = si.plot_multicomparison_agreement_by_sorter(multi_comparison)
# plt.show(w.figure)Exception ignored in: <function SharedMemoryRecording.__del__ at 0x7f34c6a37ec0>
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/numpyextractors.py", line 216, in __del__
shm.unlink()
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/multiprocessing/shared_memory.py", line 243, in unlink
_posixshmem.shm_unlink(self._name)
FileNotFoundError: [Errno 2] No such file or directory: '/psm_9b1fb6e9'
Multicomparison step 1: pairwise comparison
Multicomparison step 2: make graph
Multicomparison step 3: clean graph
Removed 0 duplicate nodes
Multicomparison step 4: extract agreement from graph
4.7.1 Create a SortingAnalyzer object and compute extensions
While the comparison functions only compute the agreement between sorters, the SortingAnalyzer class can help us compute a variety of extensions and metrics to further characterize the quality of a sorting output.
The SortingAnalyzer is created by combining a Sorting object and a Recording object. As a first step, it will estimate the sparsity of each unit, i.e. the fraction channels on which each unit is defined. This is extremely useful for high-density probes, where a unit is usually only visible on a small subset of channels and will speed up all subsequent computations!
target_sorting = sorting_KS4 # or any other Sorting object
analyzer = si.create_sorting_analyzer(target_sorting, recording_preprocessed)
print(analyzer)SortingAnalyzer: 58 channels - 57 units - 1 segments - memory - sparse - has recording
Loaded 0 extensions
This analyzer is now in memory, but we can also save it to disk in binary_folder or zarr with the save_as function:
analyzer_zarr = analyzer.save_as(format="zarr", folder="results/analyzer_KS4.zarr")Alternatively, we can create the SortingAnalyzer directly with a backend.
format = "binary_folder"
analyzer = si.create_sorting_analyzer(
sorting=target_sorting,
recording=recording_preprocessed,
folder="results/analyzer_KS4",
format=format,
overwrite=True
)
print(analyzer)SortingAnalyzer: 58 channels - 57 units - 1 segments - binary_folder - sparse - has recording
Loaded 0 extensions
When the SortingAnalyzer is saved or created with a backend , everything we compute will be saved to disk as we compute it.
Now let’s compute some extensions! Try running the following cell yourself and see what happens:
analyzer.compute("templates")Oh no - an error! This is due to the fact that extensions depend on each other. For example, you can’t template similarity (how similar unit templates are to one another) without computing templates. The full dependency graph can be seen here:
So, when we compute extensions we need to know which other extensions we need to compute beforehand… Let’s compute a few. You can either compute one at a time, or give the analyzer a big dictionary of extensions (recommended! It will re-sort based on dependencies, and be able to do a few time saving tricks):
# just one
analyzer.compute("random_spikes", max_spikes_per_unit=1000)
extension_dict = {
"noise_levels": {},
"templates": {},
"waveforms": {},
"correlograms": {},
"noise_levels": {'method': 'std'},
"spike_amplitudes": {},
"amplitude_scalings": {},
"unit_locations": {},
"spike_locations": {"method": "monopolar_triangulation"},
"template_similarity": {'method': 'l1'},
"template_metrics": {'include_multi_channel_metrics': True},
"quality_metrics": {},
}
# or lots: here we also specify some kwargs
analyzer.compute(extension_dict)/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/metrics/template/template_metrics.py:302: UserWarning: With less than 10 channels, multi-channel metrics might not be reliable.
warnings.warn(
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/core/analyzer_extension_core.py:1207: UserWarning: The following metrics will not be computed due to missing dependencies: ['d_prime', 'nearest_neighbor', 'mahalanobis', 'silhouette']
warnings.warn(
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/numpy/_core/_methods.py:219: RuntimeWarning: Degrees of freedom <= 0 for slice
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/numpy/_core/_methods.py:178: RuntimeWarning: invalid value encountered in divide
arrmean = um.true_divide(arrmean, div, out=arrmean,
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/numpy/_core/_methods.py:211: RuntimeWarning: invalid value encountered in divide
ret = ret.dtype.type(ret / rcount)
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/metrics/quality/misc_metrics.py:1006: UserWarning: Amplitude cutoff set to NaN for units [np.int64(0), np.int64(3), np.int64(4), np.int64(6), np.int64(8), np.int64(9), np.int64(17), np.int64(18), np.int64(19), np.int64(21), np.int64(22), np.int64(23), np.int64(24), np.int64(26), np.int64(27), np.int64(31), np.int64(39), np.int64(41), np.int64(42), np.int64(44), np.int64(49), np.int64(51)]: too few spikes (< 500).
warnings.warn(
/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/spikeinterface/metrics/quality/misc_metrics.py:1303: UserWarning: Drift metrics could not be computed for units [np.int64(0), np.int64(1), np.int64(2), np.int64(3), np.int64(4), np.int64(5), np.int64(6), np.int64(7), np.int64(8), np.int64(9), np.int64(10), np.int64(11), np.int64(12), np.int64(13), np.int64(14), np.int64(15), np.int64(16), np.int64(17), np.int64(18), np.int64(19), np.int64(20), np.int64(21), np.int64(22), np.int64(23), np.int64(24), np.int64(25), np.int64(26), np.int64(27), np.int64(28), np.int64(29), np.int64(30), np.int64(31), np.int64(32), np.int64(33), np.int64(34), np.int64(35), np.int64(36), np.int64(37), np.int64(38), np.int64(39), np.int64(40), np.int64(41), np.int64(42), np.int64(43), np.int64(44), np.int64(45), np.int64(46), np.int64(47), np.int64(48), np.int64(49), np.int64(50), np.int64(51), np.int64(52), np.int64(53), np.int64(54), np.int64(55), np.int64(56)] because they have less than 2 bins given the specified 'interval_s' and 'min_num_bins' or not enough valid intervals.
warnings.warn(
To see which extensions are available to compute, use analyzer.get_computable_extensions(). A good way to see which arguments an extension accepts, you can use e.g. analyzer.get_default_extension_params('template_metrics')
Now take another look in your analyzer folder. You’ll find lots of new folders containing your extensions! You can load this data directly, but SpikeInterface contains a lot of handy loader functions. The notation is always analyzer.get_extension("extension_name").get_data().
Let’s look at the quality metrics. These are measures of how good a unit is (more details). Note that which quality metrics are computed depends on which other extensions you’ve computed.
quality_metrics = analyzer.get_extension("quality_metrics").get_data()
quality_metrics.head()| num_spikes | firing_rate | presence_ratio | snr | isi_violations_ratio | isi_violations_count | rp_contamination | rp_violations | sliding_rp_violation | sync_spike_2 | ... | amplitude_cv_median | amplitude_cv_range | amplitude_cutoff | noise_cutoff | noise_ratio | amplitude_median | drift_ptp | drift_std | drift_mad | sd_ratio | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 270 | 3.000000 | 1.0 | 5.677783 | 0.411523 | 1 | 1.000000 | 1 | NaN | 0.029630 | ... | NaN | NaN | NaN | 0.696262 | 0.089069 | -120.315002 | NaN | NaN | NaN | 2.227057 |
| 1 | 4323 | 48.033333 | 1.0 | 11.338107 | 0.012842 | 8 | 0.000000 | 0 | 0.005 | 0.046264 | ... | 0.070579 | 0.030580 | 0.0 | -0.585579 | 0.025460 | -474.239990 | NaN | NaN | NaN | 1.517270 |
| 2 | 541 | 6.011111 | 1.0 | 5.406086 | 0.615004 | 6 | 0.721623 | 3 | NaN | 0.031423 | ... | 0.301185 | 0.730783 | 0.0 | 0.796368 | 0.102564 | -99.059998 | NaN | NaN | NaN | 1.846987 |
| 3 | 313 | 3.477778 | 1.0 | 4.713676 | 0.000000 | 0 | 0.000000 | 0 | NaN | 0.019169 | ... | NaN | NaN | NaN | -0.075618 | 0.068889 | -90.089996 | NaN | NaN | NaN | 1.697256 |
| 4 | 191 | 2.122222 | 1.0 | 3.762361 | 0.000000 | 0 | 0.000000 | 0 | NaN | 0.041885 | ... | NaN | NaN | NaN | -0.375769 | 0.052941 | -79.949997 | NaN | NaN | NaN | 0.938049 |
5 rows × 23 columns
This is a pandas dataframe with information about each unit. Nice.
SpikeInterface also supports lots of plotting functions that are related to extensions (see more: https://spikeinterface.readthedocs.io/en/latest/modules/widgets.html#available-plotting-functions). Let’s plot a couple of extensions using the widgets module:
w = si.plot_unit_templates(analyzer, backend="ipywidgets")
w = si.plot_crosscorrelograms(analyzer, unit_ids=[1, 2, 3])Ignoring fixed x limits to fulfill fixed data aspect with adjustable data limits.
In this chapter we have seen how to go from a preprocessed Recording to a Sorting object, how to compare spike sorting outputs, and to create a SortingAnalyzer to compute additional extensions and visualize them.
In the next chapter, you will see how to use the SortingAnalyzer and its extensions to further curate your spike sorted data!