Skip to content

Commit 951ca5b

Browse files
committed
Merge branch 'main' into ci-tests
2 parents cc85c3c + 5bc735a commit 951ca5b

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

kilosort_no_license/kilosort2_5-compiled/ks2_5_compiled.m

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ function ks2_5_compiled(fpath)
1212
rez = preprocessDataSub(ops);
1313

1414
% NEW STEP TO DO DATA REGISTRATION
15-
rez = datashift2(rez, 1); % last input is for shifting data
15+
if isfield(ops, 'do_correction')
16+
do_correction = ops.do_correction;
17+
else
18+
do_correction = 1;
19+
end
20+
21+
if do_correction
22+
fprintf("Drift correction ENABLED\n");
23+
else
24+
fprintf("Drift correction DISABLED\n");
25+
end
26+
rez = datashift2(rez, do_correction); % last input is for shifting data
1627

1728
% ORDER OF BATCHES IS NOW RANDOM, controlled by random number generator
1829
iseed = 1;

kilosort_no_license/kilosort3-compiled/ks3_compiled.m

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ function ks3_compiled(fpath)
1212
rez = preprocessDataSub(ops);
1313

1414
% run data registration
15-
rez = datashift2(rez, 1); % last input is for shifting data
15+
if isfield(ops, 'do_correction')
16+
do_correction = ops.do_correction;
17+
else
18+
do_correction = 1;
19+
end
20+
21+
if do_correction
22+
fprintf("Drift correction ENABLED\n");
23+
else
24+
fprintf("Drift correction DISABLED\n");
25+
end
26+
rez = datashift2(rez, do_correction); % last input is for shifting data
1627

1728
[rez, st3, tF] = extract_spikes(rez);
1829

0 commit comments

Comments
 (0)