petersenpeter / CellExplorer

CellExplorer is a graphical user interface, a standardized processing module and data structure for exploring and classifying single cells acquired using extracellular electrodes.
https://cellexplorer.org/
BSD 3-Clause "New" or "Revised" License
96 stars 58 forks source link

Unrecognized function or variable 'ydata' #101

Closed CWarrick closed 10 months ago

CWarrick commented 10 months ago

Hello, my name is Collin, I'm a grad student at Johns Hopkins. I've just started working with CellExplorer and have run into an issue regarding ACG fit. While running CellMetrics, MatLab returned this error while fitting the triple exponential:

Screenshot 2023-11-05 at 1 07 25 AM

It seems like there is not a 'ydata' variable defined prior to line 75 in fit_ACG as needed here: https://github.com/petersenpeter/CellExplorer/blob/31562ecb347f6c83b4f7c6bb575effafec5b56ce/calc_CellMetrics/fit_ACG.m#L75 There is a 'ydata' in a subsequent section of fit_ACG entitled "Optimization Toolbox", however the lines are inactive, so I'm unsure if they are meant to resolve this or not. My data is from a Neuropixels recording, processed with KiloSort and output from Phy. I collaborated with another scientist to gather this data who has a much better knowledge of Neuropixels than I do, so if there is more information required, I will have to reach out to them. If anyone can provide some guidance on this topic, it would be greatly appreciated, thank you!

petersenpeter commented 10 months ago

Hi Collin

I pushed a fix for this. Please update your repo and try again.

Let me know if this fixes the issue.