Skip to content

Commit a50342f

Browse files
committed
Consolodating modifyList variable
1 parent 521bb5e commit a50342f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

@SplitMerge/cutNow.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
function cutNow(app,~)
22
app.OutlierPanels.CutButton.Enable = 'off';
3-
3+
44
val = app.OutlierPanels.OutlierSlider.Value;
55
inds = find(app.Data.spikes.assigns == app.Data.outlierID);
66
wvs = app.Data.spikes.waveforms(inds,:);
77
[z,~] = get_zvalues(wvs,cov(wvs));
8-
8+
99
drop = zeros(1,length(app.Data.spikes.assigns));
1010
drop(inds(z > val)) = 1;
11-
11+
1212
if app.Settings.Debugging
1313
id = app.Data.outlierID;
1414
disp([9 'Removing ' num2str(length(find(z > val))) ' of ' num2str(length(z)) ' spikes from unit ' num2str(id)]);
1515
end
16-
16+
1717
% dependent on remove_outliers from original UMS
1818
app.Data.spikes = remove_outliers(app.Data.spikes, drop);
19-
19+
2020
app.Data.modified = ones(1,length(app.Data.modified));
21-
app.Data.modifylist = [app.Data.modifylist app.Data.outlierID]; % why oh why doesn't matlab have .push()?
21+
app.Data.modifyList = [app.Data.modifyList app.Data.outlierID]; % why oh why doesn't matlab have .push()?
2222
app.OutlierPanels.CutButton.Enable = 'on';
2323
app.refreshScreen();
24-
end
24+
end

@SplitMerge/plotUnits.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function plotUnits(app)
130130

131131
app.Data.modified(1) = 0;
132132
app.Data.doFirstPlot(1) = 0;
133-
app.Data.modifylist = [];
133+
app.Data.modifyList = [];
134134

135135
close(app.Data.loader);
136136
app.Data.loader = [];

0 commit comments

Comments
 (0)