Skip to content

Commit

Permalink
added option to skip batches for template extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
marius10p committed Mar 5, 2019
1 parent 4e07d21 commit 5acff9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions configFiles/StandardConfig_MOVEME.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
% options for determining PCs
ops.spkTh = -6; % spike threshold in standard deviations (-6)
ops.reorder = 1; % whether to reorder batches for drift correction.
ops.nskip = 25; % how many batches to skip for determining spike PCs

ops.GPU = 1; % has to be 1, no CPU version yet, sorry
% ops.Nfilt = 1024; % max number of clusters
Expand Down
1 change: 1 addition & 0 deletions configFiles/configFile384.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
% options for determining PCs
ops.spkTh = -6; % spike threshold in standard deviations (-6)
ops.reorder = 1; % whether to reorder batches for drift correction.
ops.nskip = 25; % how many batches to skip for determining spike PCs

ops.GPU = 1; % has to be 1, no CPU version yet, sorry
% ops.Nfilt = 1024; % max number of clusters
Expand Down
3 changes: 2 additions & 1 deletion mainLoop/extractTemplatesfromSnippets.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

ops = rez.ops;

nskip = getOr(ops, 'nskip', 25);
% Nchan = ops.Nchan;

Nbatch = rez.temp.Nbatch;
Expand All @@ -14,7 +15,7 @@

k = 0;
dd = gpuArray.zeros(ops.nt0, 5e4, 'single');
for ibatch = 1:100:Nbatch
for ibatch = 1:nskip:Nbatch
offset = 2 * ops.Nchan*batchstart(ibatch);
fseek(fid, offset, 'bof');
dat = fread(fid, [NT ops.Nchan], '*int16');
Expand Down

0 comments on commit 5acff9f

Please sign in to comment.