File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import datetime
33import datajoint as dj
44import typing as T
5+ import json
56
67schema = dj .schema ()
78
@@ -122,15 +123,15 @@ def make(self, key):
122123 spike_times = spike_times , bin_size = 0.001 , window_size = 1
123124 )
124125
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 )
126127
127128 self .insert1 (
128129 {
129130 ** key ,
130131 "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 (),
134135 }
135136 )
136137
You can’t perform that action at this time.
0 commit comments