Skip to content

Release v0.2.0: custom channel mappings + tolerant EDF label matching#2

Merged
joncarter1 merged 1 commit into
mainfrom
setup-pypi-publishing
Jun 25, 2026
Merged

Release v0.2.0: custom channel mappings + tolerant EDF label matching#2
joncarter1 merged 1 commit into
mainfrom
setup-pypi-publishing

Conversation

@joncarter1

Copy link
Copy Markdown
Owner

Summary

  • Add optional channel_aliases to embed_edf / preprocess_edf / load_psg_channels for recordings whose labels are not in the built-in ALT_COLUMNS (caller aliases take precedence).
  • Make channel and reference matching tolerant of case, whitespace, :// separators and device suffixes (_clean_label).
  • Accept TP9/TP10 as M1/M2 mastoid equivalents; case-insensitive pre-reference detection that no longer flags a bare reference electrode.
  • Bump version to 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. The v0.2.0 tag currently points at the tip of this branch — merge with a merge commit or fast-forward to keep the tag valid on main (a squash merge will require re-tagging).

Testing

  • uv run pytest tests/test_pipeline.py — 5 passed
  • uv run ruff check — clean

🤖 Generated with Claude Code

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]>
@joncarter1 joncarter1 force-pushed the setup-pypi-publishing branch from f5300d1 to 389f435 Compare June 25, 2026 09:16
@joncarter1 joncarter1 merged commit 12292c3 into main Jun 25, 2026
3 of 4 checks passed
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