cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
307 stars 156 forks source link

custom_similarity plugin corrupts scaling of waveform view (mean waveforms) in Kwik-gui #1157

Open Artemissy opened 2 years ago

Artemissy commented 2 years ago

After implementing the custom_similarity plugin in the Kwik-gui, the mean waveforms in the waveform view are displayed as straight lines or, depending how I close the gui or delete the cache/state.json, appear as usual but the regular waveforms are too large and cannot be rescaled.

When disabling the normalization in the _dot_product function of the plugin, the scaling problem does not appear. Renaming the variables did not help.

Thank you.