spikeinterface icon indicating copy to clipboard operation
spikeinterface copied to clipboard

Option to change datatype for whitening

Open lfrank opened this issue 2 years ago • 1 comments

We store recording traces as int16 to save space and then whiten within mountainsort4 for sorting.

We also use whitened recordings for the metrics, and currently the whitened extractor is stored as int16 as well, which loses quite a lot of resolution as a result of the normalization that occurs during whitening.

It would be very helpful to have a dtype argument for whitening so we could stored the whitened waveforms as float16 instead.

lfrank avatar Aug 02 '22 16:08 lfrank

Hi @lfrank, I learned that (1) we can specify the dtype when we call save on the whitened recording and (2) we can also specify the dtype of the waveforms when we call extract_waveforms. I will make these changes to our pipeline.

khl02007 avatar Aug 03 '22 21:08 khl02007