csn-le / wave_clus

A fast and unsupervised algorithm for spike detection and sorting using wavelets and super-paramagnetic clustering
127 stars 66 forks source link

Throws "Reference to non-existent field 'nbins6' " and same for 'nbins7' error when plotting via GUI #145

Closed sevgiozturk closed 5 years ago

sevgiozturk commented 5 years ago

I think similar errors as in #144 when I play with 'max_clus' parameter! Below 8, it generates these errors. I don't need clusters no more than 3 actually! I did not wanted to deal with always merging them later!

Reference to non-existent field 'nbins6'.

Error in wave_clus_aux>wave_clus_aux_OutputFcn (line 92) eval(['set(handles.isi' si '_nbins,''string'',par.nbins' si ');']);

Error in gui_mainfcn (line 262) [varargout{1:nargout}] = feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles);

Error in wave_clus_aux (line 36) [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

Error in plot_spikes (line 354) opened_figs{1} = wave_clus_aux('Visible', 'off');

Error in wave_clus>load_data_button_Callback (line 405) plot_spikes(handles); %This function edits userdata

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in wave_clus (line 63) gui_mainfcn(gui_State, varargin{:});

Error while evaluating UIControl Callback.

Reference to non-existent field 'nbins7'.

Error in wave_clus_aux>wave_clus_aux_OutputFcn (line 92) eval(['set(handles.isi' si '_nbins,''string'',par.nbins' si ');']);

Error in gui_mainfcn (line 262) [varargout{1:nargout}] = feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles);

Error in wave_clus_aux (line 36) [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

Error in plot_spikes (line 354) opened_figs{1} = wave_clus_aux('Visible', 'off');

Error in wave_clus>load_data_button_Callback (line 405) plot_spikes(handles); %This function edits userdata

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in wave_clus (line 63) gui_mainfcn(gui_State, varargin{:});

Error while evaluating UIControl Callback.

ferchaure commented 5 years ago

Ok, I will fix this in a minute but increasing min_clus is a safer way to reduce the number of clusters, fixing a maximum could generate quite bad results (like one multiunit and one cluster of noise)