Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small update to kilosort_path folder when there's none #403

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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