Skip to content

Commit 7a89a7f

Browse files
committed
add docstring for qc metric tables
1 parent 9cc4545 commit 7a89a7f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

element_array_ephys/ephys_report.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,16 @@ def make(self, key):
159159

160160
@schema
161161
class QualityMetricCutoffs(dj.Lookup):
162+
"""Cut-off values for quality metrics.
163+
164+
Attributes:
165+
cutoffs_id (smallint): Unique ID for the cut-off values.
166+
amplitude_cutoff_maximum (float): Optional. Amplitude cut-off.
167+
presence_ratio_minimum (float): Optional. Presence ratio cut-off.
168+
isi_violations_maximum (float): Optional. ISI violation ratio cut-off.
169+
cutoffs_hash (uuid): uuid for the cut-off values.
170+
"""
171+
162172
definition = """
163173
cutoffs_id : smallint
164174
---
@@ -218,6 +228,13 @@ def insert_new_cutoffs(
218228

219229
@schema
220230
class QualityMetricSet(dj.Manual):
231+
"""Set of quality metric values for clusters and its cut-offs.
232+
233+
Attributes:
234+
ephys.QualityMetrics (foreign key): ephys.QualityMetrics primary key.
235+
QualityMetricCutoffs (foreign key): Optional. QualityMetricCutoffs primary key.
236+
"""
237+
221238
definition = """
222239
-> ephys.QualityMetrics
223240
-> QualityMetricCutoffs
@@ -226,6 +243,13 @@ class QualityMetricSet(dj.Manual):
226243

227244
@schema
228245
class QualityMetricReport(dj.Computed):
246+
"""Table for storing quality metric figures.
247+
248+
Attributes:
249+
QualityMetricSet (foreign key): QualityMetricSet primary key.
250+
plot_grid (longblob): Figure object.
251+
"""
252+
229253
definition = """
230254
-> QualityMetricSet
231255
---

0 commit comments

Comments
 (0)