Skip to content

FIX: read_annotations(.txt) on a single channel-specific annotation#13962

Open
pjdurka wants to merge 2 commits into
mne-tools:mainfrom
pjdurka:fix-read-annotations-txt-single-channel
Open

FIX: read_annotations(.txt) on a single channel-specific annotation#13962
pjdurka wants to merge 2 commits into
mne-tools:mainfrom
pjdurka:fix-read-annotations-txt-single-channel

Conversation

@pjdurka

@pjdurka pjdurka commented Jun 14, 2026

Copy link
Copy Markdown

Claude Code found the bug while working on another project (IDE4EEG, gitlab, using MNE format and some functions) and proposed fix, which I submitted as an issue. Then I was asked in an email to create a pull request, which I hereby did, also with assistance from Claude Code.

Reference issue

Closes #13961

What does this implement/fix?

one-line change in annotations.py

for ci, ch in enumerate(ch_names)
->
for ci, ch in enumerate(np.atleast_1d(ch_names))

and test in test_annotations.py

— test passed locally.

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.

read_annotations raises AttributeError on a .txt file with a single channel-specific annotation

1 participant