Skip to content

Conversation

@chrishalcrow
Copy link
Member

@chrishalcrow chrishalcrow commented Nov 27, 2025

Currently, if one unit has a nan value, the metics distribution cannot be plotted in MetricsView. This PR fixes this!

If the units' metrics' value is nan, no dot is plotted on the diagonal plot, and no line is plotted on the off-diagonal plots which involve this unit.

Also delted some stuff that's not used in MetricsPlot

ooops not done panel

@chrishalcrow chrishalcrow marked this pull request as draft November 27, 2025 15:17
@chrishalcrow chrishalcrow marked this pull request as ready for review November 27, 2025 15:27
@alejoe91
Copy link
Member

Another cool feature would be to add Mouse selection on the metrics view! Maybe we could do it in the same PR?

@chrishalcrow
Copy link
Member Author

So you click on one of the off-diagonal plots, it finds the closest point on the metric scatter, then it selects from the unit that that point came from?


def _qt_refresh(self):
import pyqtgraph as pg
import pandas as pd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed. Now uses numpy isnan, which will work for spikeinterface 0.104 with the new metrics.
For lower versions of spikeinterface, this will error and now show an accurate metrics view (fairly harmless)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants