1- import pathlib
21import datetime
2+ import pathlib
3+
34import datajoint as dj
5+
46from . import probe
57
68schema = dj .schema ()
@@ -13,7 +15,7 @@ def activate(schema_name, ephys_schema_name, *, create_schema=True, create_table
1315
1416 Args:
1517 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
1719 this ephys_report schema will be downstream from.
1820 create_schema (bool, optional): If True (default), create schema in the database if it does not yet exist.
1921 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):
9799 """Table for storing unit level figures.
98100
99101 Attributes:
100- ephys.CuratedClustering (foreign key): ephys.CuratedClustering primary key.
102+ ephys.CuratedClustering.Unit (foreign key): ephys.CuratedClustering.Unit primary key.
101103 ephys.ClusterQualityLabel (foreign key): ephys.ClusterQualityLabel primary key.
102104 waveform_plotly (longblob): Figure object for unit waveform.
103105 autocorrelogram_plotly (longblob): Figure object for an autocorrelogram.
@@ -107,19 +109,16 @@ class UnitLevelReport(dj.Computed):
107109 definition = """
108110 -> ephys.CuratedClustering.Unit
109111 ---
110- -> ephys.ClusterQualityLabel
111- waveform_plotly : longblob
112+ -> ephys.ClusterQualityLabel
113+ waveform_plotly : longblob
112114 autocorrelogram_plotly : longblob
113115 depth_waveform_plotly : longblob
114116 """
115117
116118 def make (self , key ):
117119
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 )
123122
124123 sampling_rate = (ephys .EphysRecording & key ).fetch1 (
125124 "sampling_rate"
0 commit comments