File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ 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+ fprintf(" Drift correction ENABLED" )
17+ do_correction = ops .do_correction ;
18+ else
19+ do_correction = 1 ;
20+ end
21+ rez = datashift2(rez , do_correction ); % last input is for shifting data
1622
1723 % ORDER OF BATCHES IS NOW RANDOM, controlled by random number generator
1824 iseed = 1 ;
Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ 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+ fprintf(" Drift correction ENABLED" )
17+ do_correction = ops .do_correction ;
18+ else
19+ do_correction = 1 ;
20+ end
21+ rez = datashift2(rez , do_correction ); % last input is for shifting data
1622
1723 [rez , st3 , tF ] = extract_spikes(rez );
1824
You can’t perform that action at this time.
0 commit comments