Skip to content

Add assert error in the case of unichannel data for sortingview backend + minor clarifications#2149

Merged
alejoe91 merged 2 commits intoSpikeInterface:mainfrom
zm711:plot_traces
Nov 2, 2023
Merged

Add assert error in the case of unichannel data for sortingview backend + minor clarifications#2149
alejoe91 merged 2 commits intoSpikeInterface:mainfrom
zm711:plot_traces

Conversation

@zm711
Copy link
Copy Markdown
Member

@zm711 zm711 commented Oct 31, 2023

Fixes #1918,

I just put an assert to double check that each traces doesn't have just one channel (though maybe >1 would be a better assert if my assumption of 0 not being possible is wrong). This should prevent the issue seen in #1918.

Also tried to clarify a few errors asserts and added an assert comment for clim.

I think with this I'm done with super tiny PR fixes (for the moment :) ). I'll go back to working on module level assert touch-ups and do another pass of the docs after the release is done.

import pyvips
except ImportError:
raise ImportError("To use the timeseries in sorting view you need the pyvips package.")
raise ImportError("To use `plot_traces()` in sortingview you need the pyvips package.")
Copy link
Copy Markdown
Member Author

@zm711 zm711 Oct 31, 2023

Choose a reason for hiding this comment

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

This is showing up as an unused import? Is this necessary somewhere else?

And should this be plot_traces with sortingview backend instead? I didn't want to change this one too much without confirmation first?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It is used internally by the sortingview backend. I'd leave it here.
Yes it should be plot_traces :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Cool thanks. I've only tested sortingview once, so other than Jeremy's talk (& yours) I didn't know too much about it.

@alejoe91 alejoe91 added the documentation Improvements or additions to documentation label Nov 2, 2023
@alejoe91 alejoe91 added this to the 0.99.0 milestone Nov 2, 2023
@alejoe91 alejoe91 added the widgets Related to widgets module label Nov 2, 2023
@alejoe91 alejoe91 merged commit 5b2d5bf into SpikeInterface:main Nov 2, 2023
@zm711 zm711 deleted the plot_traces branch November 2, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation widgets Related to widgets module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue using plot_timeseries function with sortingview backend

2 participants