Skip to content

Commit 69b2796

Browse files
committed
fix: 🐛 use to_plotly_json() instead of to_json()
1 parent 14a970f commit 69b2796

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

element_array_ephys/ephys_report.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import datetime
33
import datajoint as dj
44
import typing as T
5+
import json
56

67
schema = 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

0 commit comments

Comments
 (0)