You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
eegprep-lean: set channel types from the Zarr group's channel_type #668
When eegprep-lean loads a recording from a NEMAR Zarr serving copy, to_eeg sets no channel types, so a non-EEG channel stored in the EEG group (for example ECG) is treated as a signal channel. Downstream, nemar-process's nemar-ica decomposes it with the EEG and ICLabel returns a heart component built from the ECG lead itself.
Request: read each channel's type from the group's channel_type metadata and set it in the EEG structure (EEG.chanlocs.type), so callers that select EEG channels by type exclude ECG, EOG and others as they do on the BIDS path.
Research:GroupMetadata already parsed channel_type (packages/eegprep-lean/src/eegprep_lean/channels.py), but read_window copied only labels and unit into Window, and to_eeg built chanlocs without type.
Fix: types are set only when every channel in the window declares one, which matches how labels work.
Activity
claude commentedon Nov 23, 2026
🤖 Plan:
Windowandto_eeg(pluspop_select(chantype=['EEG'])dropping an ECG channel)GroupMetadata.types(rows)->Window.types->chanlocs[i]['type']Research:
GroupMetadataalready parsedchannel_type(packages/eegprep-lean/src/eegprep_lean/channels.py), butread_windowcopied only labels and unit intoWindow, andto_eegbuiltchanlocswithouttype.Fix: types are set only when every channel in the window declares one, which matches how labels work.
Revise ADR 0137 decomposition and activations
ADR 0137: quality views drawn in the browser (#2342)