spyglass
spyglass copied to clipboard
v0 Curation does not throw away rejected units in the fetched sorting
Describe the bug v0 Curation does not throw away rejected units in the fetched sorting.
To Reproduce
import spyglass.spikesorting.v0 as sgs
key = {"nwb_file_name":'eliot20221022_.nwb',
"waveform_params_name":"default_clusterless",
"sorter":"mountainsort4",
"sort_interval_name": '02_Seq2Session1',
"sort_group_id": 0,
"curation_id":1}
sorting = sgs.Curation.get_curated_sorting(key)
There will be 12 units in the sorting. However, 4 units are rejected in the label.
(sgs.Curation & key).fetch1("curation_labels")
Expected behavior Rejected units are removed from the sorting.