Skip to content

new spike interface recording

Jeremy Magland edited this page Sep 25, 2021 · 2 revisions

Using a recording from the new SpikeInterface

Here's an example script for wrapping a new SpikeInterface recording into an old-version recording extractor for the purpose of storing in a serialized LabboxEphysRecordingExtractor:

import sortingview as sv
from sortingview.extractors.wrapperrecordingextractor import WrapperRecordingExtractor

R = # ...define recording in new spikeinterface...
R_old = WrapperRecordingExtractor(R)
recording = sv.LabboxEphysRecordingExtractor.store_recording_h5(R_old)