diff --git a/src/spikeinterface/sorters/external/kilosortbase.py b/src/spikeinterface/sorters/external/kilosortbase.py index 2b8eb621b9..67ddb52ab4 100644 --- a/src/spikeinterface/sorters/external/kilosortbase.py +++ b/src/spikeinterface/sorters/external/kilosortbase.py @@ -218,7 +218,7 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose): if params["delete_recording_dat"] and (recording_file := sorter_output_folder / "recording.dat").exists(): recording_file.unlink() - all_temp_files = ("matlab_files", "temp_wh.dat") + all_tmp_files = ("matlab_files", "temp_wh.dat") if isinstance(params["delete_tmp_files"], bool): if params["delete_tmp_files"]: