From bd525b2c770bbf675393325e1050334a05229366 Mon Sep 17 00:00:00 2001 From: Pierre Yger Date: Wed, 13 Nov 2024 15:46:17 +0100 Subject: [PATCH] Exclude 32 chan probe by default for motion correction --- src/spikeinterface/sortingcomponents/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/sortingcomponents/tools.py b/src/spikeinterface/sortingcomponents/tools.py index 1501582336..d6a587f97e 100644 --- a/src/spikeinterface/sortingcomponents/tools.py +++ b/src/spikeinterface/sortingcomponents/tools.py @@ -87,7 +87,7 @@ def get_prototype_spike(recording, peaks, ms_before=0.5, ms_after=0.5, nb_peaks= def check_probe_for_drift_correction(recording, dist_x_max=60): num_channels = recording.get_num_channels() - if num_channels < 32: + if num_channels <= 32: return False else: locations = recording.get_channel_locations()