Skip to content

Fix pop_select dialog crash on numpy chanlocs#231

Open
claude[bot] wants to merge 1 commit into
developfrom
agent/20260613-fix-229
Open

Fix pop_select dialog crash on numpy chanlocs#231
claude[bot] wants to merge 1 commit into
developfrom
agent/20260613-fix-229

Conversation

@claude

@claude claude Bot commented Jun 13, 2026

Copy link
Copy Markdown

pop_select_dialog_spec used EEG.get("chanlocs", []) or [], which raises a numpy ambiguous truth-value error on the object array that eeg_checkset stores; opening the Select data dialog after loading sample_data/eeglab_data.set hit this path. Route the chanlocs lookup through the shared chanlocs_as_list helper and add a regression test that builds the dialog spec from an EEG with ndarray chanlocs.

Fixes #229

pop_select_dialog_spec used `EEG.get("chanlocs", []) or []`, which raises
`ValueError: The truth value of an array with more than one element is
ambiguous` on the numpy object array that eeg_checkset stores. Loading
sample_data/eeglab_data.set and opening the Select data dialog hit this
path. Route the chanlocs lookup through the shared chanlocs_as_list
helper and cover the ndarray storage with a regression test.

Fixes #229
@claude claude Bot mentioned this pull request Jun 13, 2026
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.

pop_select issue

0 participants