Skip to content

Fix for missing or invalid EDF channel labels (#13170) #13192

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shiva78567
Copy link

Overview

Fixes #13170

Some EDF files were returning None or empty strings in the ch_names list, which breaks downstream functions. This PR adds a fallback mechanism that replaces missing labels with "CH###" and emits a warning.

What does this PR do?

  • Adds a fix in EDF reader to replace None or "" channel names with "CH###" format.
  • Emits a warning when such a case is encountered.
  • Adds a test to confirm this behavior in test_edf.py.

Additional Notes

Please let me know if you'd like this to be tested with specific data.

Copy link

welcome bot commented Apr 5, 2025

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

@larsoner
Copy link
Member

larsoner commented Apr 9, 2025

Hmmm this doesn't seem like it'll fix the problem as it just creates a new file named None with a few lines of code. Do you plan on integrating this in the codebase in the right place?

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.

Raw export edf file failed
2 participants