Skip to content

Commit 3d8ec16

Browse files
committed
Add Part table to track order of operations
1 parent fee5b7c commit 3d8ec16

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

element_array_ephys/ephys_precluster.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,19 @@ def insert_new_params(cls, precluster_method: str, paramset_idx: int,
291291

292292

293293
@schema
294-
class PreClusterParamList(dj.Lookup):
294+
class PreClusterParamList(dj.Manual):
295295
definition = """
296-
precluster_param_list_id: smallint # unique id for each ordered list of paramset_idx that are to be run
297-
---
298-
order_id=null: smallint # order of operations
299-
-> [nullable] PreClusterParamSet
296+
# Ordered list of paramset_idx that are to be run
297+
precluster_param_list_id: smallint
300298
"""
301-
contents = [(0,0,None)] # Allow nullable secondary attributes for the case where preclustering is not performed.
299+
300+
class ParamOrder(dj.Part):
301+
definition = """
302+
-> master
303+
order_id: smallint # Order of operations
304+
---
305+
-> [nullable] PreClusterParamSet # Nullable for when pre-clustering is not performed.
306+
"""
302307

303308

304309
@schema
@@ -325,7 +330,6 @@ class PreCluster(dj.Imported):
325330
+ If `task_mode == "load"`: verify output
326331
"""
327332
definition = """
328-
# Pre-clustering Procedure
329333
-> PreClusterTask
330334
---
331335
precluster_time: datetime # time of generation of this set of pre-clustering results

0 commit comments

Comments
 (0)