@@ -391,7 +391,7 @@ class Curation(dj.Manual):
391
391
curation_id: int
392
392
---
393
393
curation_time: datetime # time of generation of this set of curated clustering results
394
- curation_output_dir: varchar(255) # output directory of the curated results, relative to root data directory
394
+ curation_output_dir: varchar(255) # output directory of the curated results, relative to root data directory
395
395
quality_control: bool # has this clustering result undergone quality control?
396
396
manual_curation: bool # has manual curation been performed on this clustering result?
397
397
curation_note='': varchar(2000)
@@ -476,7 +476,8 @@ def make(self, key):
476
476
'spike_sites' : spike_sites [ks .data ['spike_clusters' ] == unit ],
477
477
'spike_depths' : spike_depths [ks .data ['spike_clusters' ] == unit ]})
478
478
479
- self .insert ([{** key , ** u } for u in units ])
479
+ self .insert1 (key )
480
+ self .Unit .insert ([{** key , ** u } for u in units ])
480
481
481
482
482
483
@schema
@@ -514,7 +515,7 @@ def make(self, key):
514
515
is_qc = (Curation & key ).fetch1 ('quality_control' )
515
516
516
517
# Get all units
517
- units = {u ['unit' ]: u for u in (Unit & key ).fetch (as_dict = True , order_by = 'unit' )}
518
+ units = {u ['unit' ]: u for u in (CuratedClustering . Unit & key ).fetch (as_dict = True , order_by = 'unit' )}
518
519
519
520
unit_waveforms , unit_peak_waveforms = [], []
520
521
if is_qc :
0 commit comments