spyglass icon indicating copy to clipboard operation
spyglass copied to clipboard

v0 Curation does not throw away rejected units in the fetched sorting

Open shijiegu opened this issue 5 months ago • 1 comments

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.

shijiegu avatar Sep 02 '24 18:09 shijiegu