[Bug] Creating LFP without generate_lfp? #552
Labels
bug
Indicates an unexpected problem or unintended behavior
documentation
Indicates a need for improvements or additions to documentation
Describe the bug
I am attempting to use estimate_csd without generate fake LFP data. I extract genuine lfp data from our files, but it looks like it requires a very specific format of input LFP data in the form of a neo.AnalogSignal with specific annotations and units. I have had a little bit of difficulty with manually converting my LFP data (as a np array) into a neo AnalogSignal, as I am new to neo and I'm unsure exactly what information is required as input. I've done my best to try and mimic the output of
generate_lfp
but at this point, I've encountered an error which I am unsure if it's a bug or not. 'TypeError: len() of unsized object`.To Reproduce
where coords is an array of scalar values and hz is a scalar.
Traceback
I suspect that it is the case that either the input coordinates ought to be provided as a 2D list, or the code which checks the length of the coordinates should cast the coordinate item in the input coordinates into a tuple of length 1.
Expected behavior
I expect either the CSD analysis to produce valid output or to be given an explanatory error.
Environment
Windows 10:
Installed elephant with pip install elephant:
Python version: 3.9.10
neo==0.12.0
numpy==1.21.5
elephant==0.12.0
The text was updated successfully, but these errors were encountered: