djamesbarker / pMAT

Fiber Photometry Modular Analysis Tool Suite
GNU General Public License v3.0
32 stars 9 forks source link

Spike Detection #5

Open djamesbarker opened 3 years ago

djamesbarker commented 3 years ago

We're aware of an error either with the plotting or grouping of data when using the Spike Detection tool's hold times. We're looking into the source of the problem.

djamesbarker commented 3 years ago

The problem has been identified and will be fixed in the next release.

akesner1 commented 2 years ago

Hi Barker Lab, I am using v1.3 and get this error when running the Spike Detection with default settings (see below). Is this the error you are referring to and is there a work around yet? Thanks!:

Starting parallel pool (parpool) using the 'local' profile ... Connected to the parallel pool (number of workers: 4). Elapsed time is 22.820437 seconds. Warning: Unexpected Error thrown while running Peak Analysis.Unable to calculate Peak Analysis.

In pmat>SpikeCountRun_Callback (line 2373) In gui_mainfcn (line 95) In pmat (line 49) In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pmat('SpikeCountRun_Callback',hObject,eventdata,guidata(hObject)) Unable to perform assignment because the size of the left side is 9-by-1 and the size of the right side is 8-by-1.

Error in FP_SPIKECOUNT (line 98) tmpSpikes(:,2)=Zero_rule_spikes(Index2+1,2);

Error in pmat>SpikeCountRun_Callback (line 2360) [Spike_Values] = FP_SPIKECOUNT (DF_MAD,Threshold,handles.Ts,handles.Fs,Hold_Constant,Zero_Rule);

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

Error in pmat (line 49) gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pmat('SpikeCountRun_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.