File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
import datetime
3
3
import datajoint as dj
4
4
import typing as T
5
+ import json
5
6
6
7
schema = dj .schema ()
7
8
@@ -122,15 +123,15 @@ def make(self, key):
122
123
spike_times = spike_times , bin_size = 0.001 , window_size = 1
123
124
)
124
125
125
- depth_waveform_fig = plot_depth_waveforms (unit_key = key , y_range = 50 )
126
+ depth_waveform_fig = plot_depth_waveforms (ephys , unit_key = key , y_range = 60 )
126
127
127
128
self .insert1 (
128
129
{
129
130
** key ,
130
131
"cluster_quality_label" : cluster_quality_label ,
131
- "waveform_plotly" : waveform_fig .to_json (),
132
- "autocorrelogram_plotly" : correlogram_fig .to_json (),
133
- "depth_waveform_plotly" : depth_waveform_fig .to_json (),
132
+ "waveform_plotly" : waveform_fig .to_plotly_json (),
133
+ "autocorrelogram_plotly" : correlogram_fig .to_plotly_json (),
134
+ "depth_waveform_plotly" : depth_waveform_fig .to_plotly_json (),
134
135
}
135
136
)
136
137
You can’t perform that action at this time.
0 commit comments