sparsity is also converted to json
@@ -10,8 +10,7 @@ class UnitWaveformPlotter(SortingviewPlotter):
backend_kwargs = self.update_backend_kwargs(**backend_kwargs)
# ensure serializable for sortingview
- #unit_ids, channel_ids, sparsity = self.make_serializable(dp.unit_ids, dp.channel_ids, dp.all_templates)
- unit_ids, channel_ids = self.make_serializable(dp.unit_ids, dp.channel_ids)
+ unit_ids, channel_ids, sparsity = self.make_serializable(dp.unit_ids, dp.channel_ids, dp.sparsity)
templates_dict = {}
for u_i, unit in enumerate(unit_ids):
