Skip to content

example workspace

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

example workspace

An example workspace created using this script

import sortingview as sv
import spikeextractors as se

recording, sorting = se.example_datasets.toy_example(K=12)

R = sv.LabboxEphysRecordingExtractor.from_memory(recording, serialize=True, serialize_dtype='float32')
S = sv.LabboxEphysSortingExtractor.from_memory(sorting, serialize=True)

W = sv.create_workspace()
recording_id = W.add_recording(label='recording1', recording=R)
W.add_sorting(recording_id=recording_id, label='true', sorting=S)

F = W.figurl()
url = F.url(label='Test workspace')
print(url)

https://www.figurl.org/fig?channel=flatiron1&figureObject=bdb98107e14e4cb38a42257e264a6d0d895507dd&label=Test%20workspace

Clone this wiki locally