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