Skip to content

Fix missing channels in OpenEphys XML #347

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 4 commits into
base: main
Choose a base branch
from

Conversation

weiglszonja
Copy link

@weiglszonja weiglszonja commented May 13, 2025

This PR introduces a standalone script (fix_openephys_xml_missing_channels.py) that:

  • Issues a warning when missing channels are detected in the XML (based on the CHANNELS tag)
  • Fills in missing channels in the CHANNELS, ELECTRODE_XPOS, and ELECTRODE_YPOS tags using inferred values
  • Optionally overwrites the original XML or saves a corrected copy (.fixed.xml).

See example for dataset in catalystneuro/schneider-lab-to-nwb#33

@weiglszonja weiglszonja marked this pull request as draft May 13, 2025 16:06
@weiglszonja weiglszonja marked this pull request as ready for review May 14, 2025 13:25
@weiglszonja
Copy link
Author

@h-mayorquin @alejoe91 let me know what you think

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.

1 participant