Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning message for streams with mixed units #3739

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

h-mayorquin
Copy link
Collaborator

@h-mayorquin h-mayorquin commented Mar 4, 2025

After reviewing PR #3728, I don't think we should be raising a warning when non-voltage units are found. Loading data with NIDQ or other non-neural recordings should be fine. For that case, the current warning isn't useful and I think is just noise.

What we should warn the user about is when the extractor contains mixed units (voltage and non-voltage), as this likely indicates that the stream should be subsetted and it will not work directly for most routines here. This PR improves this and gives the user the tools to figure out which channels might have to be removed.

As a side benefit, this also addresses a request that @samuelgarcia made a while ago (I think two years) to move this warning logic from the base extractor to Neo which I agreed but never had the time to do.

@h-mayorquin h-mayorquin added the extractors Related to extractors module label Mar 4, 2025
@h-mayorquin h-mayorquin self-assigned this Mar 4, 2025
@h-mayorquin h-mayorquin changed the title Add warning message for stream with mixed units Add warning message for streams with mixed units Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extractors Related to extractors module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant