diff --git a/src/spikeinterface/sortingcomponents/clustering/circus.py b/src/spikeinterface/sortingcomponents/clustering/circus.py index 4135bd4b6e..ce7a78e4c6 100644 --- a/src/spikeinterface/sortingcomponents/clustering/circus.py +++ b/src/spikeinterface/sortingcomponents/clustering/circus.py @@ -226,7 +226,14 @@ def main_function(cls, recording, peaks, params): ) templates = Templates( - templates_array, fs, nbefore, None, recording.channel_ids, unit_ids, recording.get_probe() + templates_array=templates_array, + sampling_frequency=fs, + nbefore=nbefore, + sparsity_mask=None, + channel_ids=recording.channel_ids, + unit_ids=unit_ids, + probe=recording.get_probe(), + is_scaled=False, ) if params["noise_levels"] is None: params["noise_levels"] = get_noise_levels(recording, return_scaled=False) diff --git a/src/spikeinterface/sortingcomponents/clustering/random_projections.py b/src/spikeinterface/sortingcomponents/clustering/random_projections.py index efd63be55f..6c1ad75383 100644 --- a/src/spikeinterface/sortingcomponents/clustering/random_projections.py +++ b/src/spikeinterface/sortingcomponents/clustering/random_projections.py @@ -137,7 +137,14 @@ def main_function(cls, recording, peaks, params): ) templates = Templates( - templates_array, fs, nbefore, None, recording.channel_ids, unit_ids, recording.get_probe() + templates_array=templates_array, + sampling_frequency=fs, + nbefore=nbefore, + sparsity_mask=None, + channel_ids=recording.channel_ids, + unit_ids=unit_ids, + probe=recording.get_probe(), + is_scaled=False, ) if params["noise_levels"] is None: params["noise_levels"] = get_noise_levels(recording, return_scaled=False)