@@ -391,7 +391,7 @@ class Curation(dj.Manual):
391391 curation_id: int
392392 ---
393393 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
395395 quality_control: bool # has this clustering result undergone quality control?
396396 manual_curation: bool # has manual curation been performed on this clustering result?
397397 curation_note='': varchar(2000)
@@ -476,7 +476,8 @@ def make(self, key):
476476 'spike_sites' : spike_sites [ks .data ['spike_clusters' ] == unit ],
477477 'spike_depths' : spike_depths [ks .data ['spike_clusters' ] == unit ]})
478478
479- self .insert ([{** key , ** u } for u in units ])
479+ self .insert1 (key )
480+ self .Unit .insert ([{** key , ** u } for u in units ])
480481
481482
482483@schema
@@ -514,7 +515,7 @@ def make(self, key):
514515 is_qc = (Curation & key ).fetch1 ('quality_control' )
515516
516517 # 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' )}
518519
519520 unit_waveforms , unit_peak_waveforms = [], []
520521 if is_qc :
0 commit comments