Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in some recordings(from spikeglx,NP1) during computation of spatial decay #254

Open
shiladityaneuron opened this issue Dec 23, 2024 · 1 comment

Comments

@shiladityaneuron
Copy link

Describe the bug

Error using snls (line 47)
Objective function is returning undefined
values at initial point. lsqcurvefit
cannot continue.

Error in lsqncommon (line 164)
snls(funfcn,xC,lb,ub,flags.verbosity,options,defaultopt,initVals.F,initVals.J,caller,
...

Error in lsqcurvefit (line 272)
lsqncommon(funfcn,xCurrent,lb,ub,options,defaultopt,allDefaultOpts,caller,...

Error in bc.qm.helpers.getSpatialDecay
(line 77)
[fitParams, ~, residual, ~, ~, ~,
jacobian] =
lsqcurvefit(expDecayFun,
initialGuess,
spatialDecayPoints_loc,
spatialDecayPoints', [], [],
options);

Error in bc.qm.waveformShape (line 162)
bc.qm.helpers.getSpatialDecay(templateWaveforms,
thisUnit, maxChannel,
channelPositions, linearFit,

System information

Please complete the following information if you can:
Recording probes: [Neuropixels 1.0, ]
Recording software: [SpikeGLX]
OS: [Windows]
MATLAB version: [2019b]

@Julie-Fabre
Copy link
Owner

Hi,

Thank you for your message! Would you be able to send me an example dataset so I can reproduce this?
I would need the following files:

  • spike_times.npy
  • spike_clusters.npy
  • templates.npy
  • amplitudes.npy

Thanks a lot and happy holidays!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants