Closed dlevenstein closed 6 years ago
@dlevenstein LoadParameters already returns a subfield called .FileName, why does it need to also be given as a separate output?
Otherwise, looks great!
Ah - I wanted to pass through the full filename of the actual file loaded. I thought the parameters.FileName was something saved in the .xml, but looks like it is actually the name of the file loaded. So I can take this out and use fullfile(parameters.session.path,[parameters.session.name,'.xml'])
fixed!
bz_getLFP -can load the lfp pre-downsampled by some 'downsamplefactor' (saves RAM/processing when loading many channels and high resolution is not needed)
bz_LFPfromDat -can accept file named amplifier.dat
bz_getSpikes -returns wideband sampling rate - maximum resolution of the spike times
bz_ConcatenateDats -creates events.mat file with all the metadata from the concatenation in one place: merge points in samples/seconds/bytes that match lfp/dat file; concatenated files; size check validation; etc. -renovated some code to avoid use of eval() function (would especially like review on this from @AntonioFR8, as you just worked with this code as well - anything else that should be done/saved in the MergePoints.events.mat file?)