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
pAMICA keeps the outcome of its in-algorithm sample rejection on the model (passes made and samples kept), but eeg_pamica at edf694c does not copy it into EEG.etc['pamica'], and pop_runica does not return the model. Pipelines that turn rejection on (nemar-process nemar-ica, nemarOrg/nemar-process#81, epic nemarOrg/nemar-cli#2324) cannot record how many samples were rejected.
Request: add the rejection settings actually used and the outcome (number of rejection passes, n_good_samples, the rejected-sample count or mask) to EEG.etc['pamica'].
Research: eeg_pamica builds EEG.etc["pamica"] from settings passed plus fit outcome (eeg_pamica.py#L177-L199); pAMICA 0.4.0 keeps rejection state on model.model_ (do_reject, rejsig, rejstart, rejint, maxrej, numrej, good_idx), none of which is copied.
Test first in tests/test_pop_runica_pamica.py: do_reject=True fit records settings + numrej, n_good_samples, n_rejected_samples, and still replays.
Fix: record the effective rejection settings from model.model_ and the outcome (n_good_samples = len(good_idx), or all samples when off).
CI: unit tests (ubuntu 3.12/3.13, macOS, Windows), lint, ty, docs, EEGLAB Python backend pass; E1 report and Pyodide jobs still running.
Not done: the rejected-sample mask is not stored, only counts. Core-function change, so it needs human approval and the EEGLAB reference run before merge.
Activity
claude commentedon Nov 23, 2026
🤖 Plan:
eeg_pamicabuildsEEG.etc["pamica"]from settings passed plus fit outcome (eeg_pamica.py#L177-L199); pAMICA 0.4.0 keeps rejection state onmodel.model_(do_reject,rejsig,rejstart,rejint,maxrej,numrej,good_idx), none of which is copied.tests/test_pop_runica_pamica.py:do_reject=Truefit records settings +numrej,n_good_samples,n_rejected_samples, and still replays.model.model_and the outcome (n_good_samples = len(good_idx), or all samples when off).Not done: the rejected-sample mask is not stored, only counts. Core-function change, so it needs human approval and the EEGLAB reference run before merge.
[ICA] Record pAMICA sample rejection settings and counts