{"action":"closed","issue":{"url":"https://api.github.com/repos/csn-le/wave_clus/issues/111","repository_url":"https://api.github.com/repos/csn-le/wave_clus","labels_url":"https://api.github.com/repos/csn-le/wave_clus/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/csn-le/wave_clus/issues/111/comments","events_url":"https://api.github.com/repos/csn-le/wave_clus/issues/111/events","html_url":"https://github.com/csn-le/wave_clus/issues/111","id":390397842,"node_id":"MDU6SXNzdWUzOTAzOTc4NDI=","number":111,"title":"ncs_wc_reader error","user":{"login":"aboharbf","id":25850560,"node_id":"MDQ6VXNlcjI1ODUwNTYw","avatar_url":"https://avatars0.githubusercontent.com/u/25850560?v=4","gravatar_id":"","url":"https://api.github.com/users/aboharbf","html_url":"https://github.com/aboharbf","followers_url":"https://api.github.com/users/aboharbf/followers","following_url":"https://api.github.com/users/aboharbf/following{/other_user}","gists_url":"https://api.github.com/users/aboharbf/gists{/gist_id}","starred_url":"https://api.github.com/users/aboharbf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboharbf/subscriptions","organizations_url":"https://api.github.com/users/aboharbf/orgs","repos_url":"https://api.github.com/users/aboharbf/repos","events_url":"https://api.github.com/users/aboharbf/events{/privacy}","received_events_url":"https://api.github.com/users/aboharbf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-12T20:34:23Z","updated_at":"2018-12-13T15:04:52Z","closed_at":"2018-12-13T15:04:52Z","author_association":"NONE","body":"running into issue with ncs_wc_reader when fed arguments` set_parameters()` and `'D:\\...\\...\\RawFile_NSX_Ch1.NC5'`\r\n\r\nNot getting the same issue when using the GUI, though using a breakpoint above that spot suggests it isn't ever called by the gui.\r\n\r\nError:\r\n```\r\nWarning: corrupt TimeStamps - attempting correction \r\n> In ncs_wc_reader (line 28)\r\n  In WaveClusTest (line 22) \r\nError using ncs_wc_reader (line 34)\r\nAutomated correction of corrupt TimeStamps failed - try manually!\r\n\r\nError in WaveClusTest (line 22)\r\n      ncs_wc_reader(set_parameters(), parsedData{ii});\r\n```\r\n\r\n\r\n\r\nset_parameters.m\r\n```\r\nfunction par = set_parameters()\r\n\r\n% LOAD PARAMS\r\npar.segments_length = 5;             % length (in minutes) of segments in which the data is cutted (default 5min).\r\npar.sr = 30000;                      % sampling rate (in Hz). This parameter will be only used if the data file don't have a sr.\r\n\r\n\r\n% PLOTTING PARAMETERS\r\npar.cont_segment = true;\r\npar.max_spikes_plot = 1000;          % max. number of spikes to be plotted\r\npar.print2file = true;               % If is not true, print the figure (only for batch scripts).\r\npar.cont_plot_samples = 100000;      % number of samples used in the one-minute (maximum) sample of continuous data to plot.\r\npar.to_plot_std = 1;                 % # of std from mean to plot\r\npar.all_classes_ax = 'mean';         % 'mean'/'all'. If it's 'mean' only the mean waveforms will be ploted in the axes with all the classes\r\npar.plot_feature_stats = false;\r\n\r\n\r\n% SPC PARAMETERS\r\npar.mintemp = 0.00;                  % minimum temperature for SPC\r\npar.maxtemp = 0.251;                 % maximum temperature for SPC\r\npar.tempstep = 0.01;                 % temperature steps\r\npar.SWCycles = 100;                  % SPC iterations for each temperature (default 100)\r\npar.KNearNeighb = 11;                % number of nearest neighbors for SPC\r\npar.min_clus = 100;                  % minimum size of a cluster (default 20)\r\npar.max_clus = 33;                   % maximum number of clusters allowed (default 200)\r\npar.randomseed = 0;                  % if 0, random seed is taken as the clock value (default 0)\r\n%par.randomseed = 147;               % If not 0, random seed\r\n%par.temp_plot = 'lin';              % temperature plot in linear scale\r\npar.temp_plot = 'log';               % temperature plot in log scale\r\n\r\npar.c_ov = 0.7;                      % Overlapping coefficient to use for the inclusion criterion.\r\npar.elbow_min  = 0.4;                %Thr_border parameter for regime border detection.\r\n\r\n% DETECTION PARAMETERS\r\npar.tmax = 'all';                    % maximum time to load\r\n%par.tmax= 180;                      % maximum time to load (in sec)\r\npar.tmin= 0;                         % starting time for loading (in sec)\r\npar.w_pre = 20;                      % number of pre-event data points stored (default 20)\r\npar.w_post = 44;                     % number of post-event data points stored (default 44))\r\npar.alignment_window = 10;           % number of points around the sample expected to be the maximum\r\npar.stdmin = 5;                      % minimum threshold for detection\r\npar.stdmax = 50;                     % maximum threshold for detection\r\npar.detect_fmin = 300;               % high pass filter for detection\r\npar.detect_fmax = 10000;              % low pass filter for detection (default 3000)\r\npar.detect_order = 4;                % filter order for detection\r\npar.sort_fmin = 300;                 % high pass filter for sorting\r\npar.sort_fmax = 10000;                % low pass filter for sorting (default 3000)\r\npar.sort_order = 2;                  % filter order for sorting\r\npar.ref_ms = 1.5;                    % detector dead time, minimum refractory period (in ms)\r\n% par.detection = 'pos';               % type of threshold ('pos','neg','both')\r\npar.detection = 'neg';\r\n% par.detection = 'both';\r\n\r\n% INTERPOLATION PARAMETERS\r\npar.int_factor = 5;                  % interpolation factor\r\npar.interpolation = 'y';             % interpolation with cubic splines (default 'y')\r\n% par.interpolation = 'n';\r\n\r\n\r\n% FEATURES PARAMETERS\r\npar.min_inputs = 10;         % number of inputs to the clustering\r\npar.max_inputs = 0.75;       % number of inputs to the clustering. if < 1 it will the that proportion of the maximum.\r\npar.scales = 4;                        % number of scales for the wavelet decomposition\r\npar.features = 'wav';                % type of feature ('wav' or 'pca')\r\n%par.features = 'pca';\r\n\r\n\r\n% FORCE MEMBERSHIP PARAMETERS\r\npar.template_sdnum = 1.5;           % max radius of cluster in std devs.\r\npar.template_k = 100;               % # of nearest neighbors\r\npar.template_k_min = 50;            % min # of nn for vote\r\n%par.template_type = 'mahal';       % nn, center, ml, mahal\r\npar.template_type = 'center';       % nn, center, ml, mahal\r\npar.force_feature = 'spk';          % feature use for forcing (whole spike shape)\r\n%par.force_feature = 'wav';         % feature use for forcing (wavelet coefficients).\r\npar.force_auto = true;              %automatically force membership (only for batch scripts).\r\n\r\n% TEMPLATE MATCHING\r\npar.match = 'y';                    % for template matching\r\n%par.match = 'n';                   % for no template matching\r\npar.max_spk = 40000;                % max. # of spikes before starting templ. match.\r\npar.permut = 'y';                   % for selection of random 'par.max_spk' spikes before starting templ. match.\r\n% par.permut = 'n';                 % for selection of the first 'par.max_spk' spikes before starting templ. match.\r\n\r\n% HISTOGRAM PARAMETERS\r\npar.nbins = 100;                    % # of bins for the ISI histograms\r\npar.bin_step = 1;                   % percentage number of bins to plot\r\n```\r\n\r\n"}}
{"actor":{"display_login":"aboharbf"}}