1
- import pathlib
2
1
import datetime
2
+ import pathlib
3
+
3
4
import datajoint as dj
5
+
4
6
from . import probe
5
7
6
8
schema = dj .schema ()
@@ -13,7 +15,7 @@ def activate(schema_name, ephys_schema_name, *, create_schema=True, create_table
13
15
14
16
Args:
15
17
schema_name (str): schema name on the database server to activate the `ephys_report` schema.
16
- ephys_schema_name (str): schema name of the activated ephys element for which
18
+ ephys_schema_name (str): schema name of the activated ephys element for which
17
19
this ephys_report schema will be downstream from.
18
20
create_schema (bool, optional): If True (default), create schema in the database if it does not yet exist.
19
21
create_tables (bool, optional): If True (default), create tables in the database if they do not yet exist.
@@ -97,7 +99,7 @@ class UnitLevelReport(dj.Computed):
97
99
"""Table for storing unit level figures.
98
100
99
101
Attributes:
100
- ephys.CuratedClustering (foreign key): ephys.CuratedClustering primary key.
102
+ ephys.CuratedClustering.Unit (foreign key): ephys.CuratedClustering.Unit primary key.
101
103
ephys.ClusterQualityLabel (foreign key): ephys.ClusterQualityLabel primary key.
102
104
waveform_plotly (longblob): Figure object for unit waveform.
103
105
autocorrelogram_plotly (longblob): Figure object for an autocorrelogram.
@@ -107,19 +109,16 @@ class UnitLevelReport(dj.Computed):
107
109
definition = """
108
110
-> ephys.CuratedClustering.Unit
109
111
---
110
- -> ephys.ClusterQualityLabel
111
- waveform_plotly : longblob
112
+ -> ephys.ClusterQualityLabel
113
+ waveform_plotly : longblob
112
114
autocorrelogram_plotly : longblob
113
115
depth_waveform_plotly : longblob
114
116
"""
115
117
116
118
def make (self , key ):
117
119
118
- from .plotting .unit_level import (
119
- plot_waveform ,
120
- plot_auto_correlogram ,
121
- plot_depth_waveforms ,
122
- )
120
+ from .plotting .unit_level import (plot_auto_correlogram ,
121
+ plot_depth_waveforms , plot_waveform )
123
122
124
123
sampling_rate = (ephys .EphysRecording & key ).fetch1 (
125
124
"sampling_rate"
0 commit comments