I would like to load a continuous EEG dataset and use append_NWB_LFP to append it to a preexisting nwb file. To do this I adapted code from the wiki for loading memory mapped files. However the code breaks when using the example dataset provided with the repo:
I would like to load a continuous EEG dataset and use
append_NWB_LFP
to append it to a preexisting nwb file. To do this I adapted code from the wiki for loading memory mapped files. However the code breaks when using the example dataset provided with the repo:This is because the
eeg
var is a TsdFrame, so lines 285-286 of io.misc (inappend_NWB_LFP
function) will be triggered.which will set channels to a ndarray. This will cause an error with lines 296 (
append_NWB_LFP
function):which expects
region
to be a slice or list or tuple. I suggest castinglfp.columns.values
inappend_NWB_LFP
to a list to fix.