Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion io/bz_GetSpikes.m
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@
fold_idx = find(cellfun(@(x) ~isempty(x),aux));
%in case of multiple folders, it's going to take the first one in the
%list
kilosort_path = temp(fold_idx(1));
if ~isempty(fold_idx)
kilosort_path = temp(fold_idx(1));
else
kilosort_path = [];
end

if strcmpi(sortingMethod,'clu') || ~isempty(cluFiles) % LOADING FROM CLU/ RES
fs = spikes.samplingRate;
Expand Down