From 2c86a5bba98d547041be3527928740eca2af2d6f Mon Sep 17 00:00:00 2001 From: Sam Bray Date: Fri, 27 Oct 2023 16:59:59 -0700 Subject: [PATCH] Only run populator on initial curation entries --- src/spyglass/spikesorting/spikesorting_populator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spyglass/spikesorting/spikesorting_populator.py b/src/spyglass/spikesorting/spikesorting_populator.py index cb95049c5..8e31eb47a 100644 --- a/src/spyglass/spikesorting/spikesorting_populator.py +++ b/src/spyglass/spikesorting/spikesorting_populator.py @@ -227,7 +227,7 @@ def spikesorting_pipeline_populator( print("Extracting waveforms") curation_keys = [ {**k, "waveform_params_name": waveform_params_name} - for k in (Curation() & sort_dict).fetch("KEY") + for k in (Curation() & sort_dict & {"curation_id": 0}).fetch("KEY") ] WaveformSelection.insert(curation_keys, skip_duplicates=True) Waveforms.populate(sort_dict)