Release v0.2.0: custom channel mappings + tolerant EDF label matching#2
Merged
Conversation
Add an optional `channel_aliases` parameter threaded through embed_edf -> preprocess_edf -> load_psg_channels for recordings whose labels aren't covered by the built-in ALT_COLUMNS; caller aliases take precedence. Make channel and reference matching tolerant of case, whitespace, :/-/ separators and device suffixes (_clean_label), and accept TP9/TP10 as M1/M2 mastoid equivalents. Pre-reference detection is now case-insensitive and no longer flags a bare reference electrode. Bump version to 0.2.0 and document under "Custom channel labels". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
f5300d1 to
389f435
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
channel_aliasestoembed_edf/preprocess_edf/load_psg_channelsfor recordings whose labels are not in the built-inALT_COLUMNS(caller aliases take precedence).://separators and device suffixes (_clean_label).TP9/TP10asM1/M2mastoid equivalents; case-insensitive pre-reference detection that no longer flags a bare reference electrode.0.2.0; document under "Custom channel labels".This branch also carries the earlier PyPI trusted-publishing / CI / packaging setup.
Release notes
Releases are cut from
main. Thev0.2.0tag currently points at the tip of this branch — merge with a merge commit or fast-forward to keep the tag valid onmain(a squash merge will require re-tagging).Testing
uv run pytest tests/test_pipeline.py— 5 passeduv run ruff check— clean🤖 Generated with Claude Code