Skip to content

Commit daf83eb

Browse files
committed
Update KS2.5 and KS3 function
1 parent 51782ae commit daf83eb

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

kilosort_no_license/kilosort2_5-compiled/ks2_5_compiled.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ function ks2_5_compiled(fpath)
1313

1414
% NEW STEP TO DO DATA REGISTRATION
1515
if isfield(ops, 'do_correction')
16-
fprintf("Drift correction ENABLED")
1716
do_correction = ops.do_correction;
1817
else
1918
do_correction = 1;
2019
end
20+
21+
if do_correction
22+
fprintf("Drift correction ENABLED\n");
23+
else
24+
fprintf("Drift correction DISABLED\n");
25+
end
2126
rez = datashift2(rez, do_correction); % last input is for shifting data
2227

2328
% ORDER OF BATCHES IS NOW RANDOM, controlled by random number generator

kilosort_no_license/kilosort3-compiled/ks3_compiled.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ function ks3_compiled(fpath)
1313

1414
% run data registration
1515
if isfield(ops, 'do_correction')
16-
fprintf("Drift correction ENABLED")
1716
do_correction = ops.do_correction;
1817
else
1918
do_correction = 1;
2019
end
20+
21+
if do_correction
22+
fprintf("Drift correction ENABLED\n");
23+
else
24+
fprintf("Drift correction DISABLED\n");
25+
end
2126
rez = datashift2(rez, do_correction); % last input is for shifting data
2227

2328
[rez, st3, tF] = extract_spikes(rez);

0 commit comments

Comments
 (0)