File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments