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
[GUI] Match the pop_rejtrend dialog to EEGLAB #910
🤖 The pop_rejtrend channel and ICA dialogs now take their height from the seven recorded rows. The largest vertical control offset changed from 74.32 to 0.86 pixels on jamming. This branch stacks on #926. #927
Epoch rejection marks must match exactly. All six masks matched.
Scope and verification
Exercise the public channel and ICA calls on jamming with the same epoched dataset. Compare each control and the submitted rejection masks. Part of #875. Follow-up to #875, Dialog geometry test suite on Linux: ten dialogs drawn from the same geometry in EEGLAB and EEGPrep, supergui reworked to match MATLAB.
pop_rejtrend_dialog_spec uses the legacy fixed-size layout (size=(600, 304)) instead of layout="supergui", which spreads the rows. It also shortens EEGLAB labels, drops the ' ' checkbox strings, and passes the blank row as a spacer instead of a 1 geometry row.
Mirror the EEGLAB uilist: layout="supergui", geometry {g1 g1 g1 g1 1 g2 g2}, label R-square limit to allow ([0:1], Ex: 0.8), slope label with units, checkbox strings ' '.
Open for a human: the EEGLAB fastif at line 118 is inverted, so the data dialog says (std. dev./epoch) and the component dialog says (uV/epoch). #911 copies EEGLAB literally. Not done here: adding pop_rejtrend to tools/gui_geometry (record_geometry.m + draw_geometry.m reference), which needs MATLAB, and a side-by-side screenshot.
🤖 Follow-up of December 1, 2026: the slope label of this dialog showed the two units swapped, as EEGLAB does. Arno chose to show the correct unit in EEGPrep (uV/epoch for channel data, std. dev./epoch for components) and to fix EEGLAB too. EEGPrep: #1060. EEGLAB: sccn/eeglab#1009.
Done: Pull request 1060 shows the correct slope unit in the pop_rejtrend dialog: uV/epoch for channel data and std. dev./epoch for components, with the help and both tests updated and EEGLAB pull request 1009 named in the test exception. It is open and not merged. On jamming the two test files give 308 passed on the branch.
Done: EEGLAB pull request 1009 is analyzed and merged into EEGLAB develop (merge commit 3dd650cc7), as Arno authorized. The analysis confirms it: rejtrend.m fits the slope over a window scaled from 0 to 1 on the raw channel data, so channel data is in uV per epoch and components are in activation units (std. dev.), which is what the help of pop_rejtrend.m already said and what pop_eegthresh.m shows. The matching EEGPrep pull request is 1060, already open; its two recorded cases are being recorded again from the corrected EEGLAB so its test exception can go.
Activity
claude commentedon Dec 1, 2026
🤖 Plan:
tests/test_stream6_rejection_numbers.py::test_pop_rejtrend_dialog_matches_eeglab_uilist)pop_rejtrend_dialog_specResearch
pop_rejtrend_dialog_specuses the legacy fixed-size layout (size=(600, 304)) instead oflayout="supergui", which spreads the rows. It also shortens EEGLAB labels, drops the' 'checkbox strings, and passes the blank row as a spacer instead of a1geometry row.Relevant code
src/eegprep/functions/popfunc/pop_rejtrend.py#L84-L118- dialog specpop_rejtrend.m#L116-L144- EEGLAB promptstr/uilistsrc/eegprep/functions/popfunc/pop_eegthresh.py#L98-L129- same dialog shape, already on superguiProposed Fix
Mirror the EEGLAB uilist:
layout="supergui", geometry{g1 g1 g1 g1 1 g2 g2}, labelR-square limit to allow ([0:1], Ex: 0.8), slope label with units, checkbox strings' '.Open for a human: the EEGLAB
fastifat line 118 is inverted, so the data dialog says(std. dev./epoch)and the component dialog says(uV/epoch). #911 copies EEGLAB literally. Not done here: addingpop_rejtrendtotools/gui_geometry(record_geometry.m+draw_geometry.mreference), which needs MATLAB, and a side-by-side screenshot.arnodelorme commentedon Dec 1, 2026
🤖 Follow-up of December 1, 2026: the slope label of this dialog showed the two units swapped, as EEGLAB does. Arno chose to show the correct unit in EEGPrep (
uV/epochfor channel data,std. dev./epochfor components) and to fix EEGLAB too. EEGPrep: #1060. EEGLAB: sccn/eeglab#1009.arnodelorme commentedon Dec 1, 2026
Done: Pull request 1060 shows the correct slope unit in the pop_rejtrend dialog: uV/epoch for channel data and std. dev./epoch for components, with the help and both tests updated and EEGLAB pull request 1009 named in the test exception. It is open and not merged. On jamming the two test files give 308 passed on the branch.
Pull request: #1060
— eegprep, reported with orch done
arnodelorme commentedon Dec 1, 2026
Done: EEGLAB pull request 1009 is analyzed and merged into EEGLAB develop (merge commit 3dd650cc7), as Arno authorized. The analysis confirms it: rejtrend.m fits the slope over a window scaled from 0 to 1 on the raw channel data, so channel data is in uV per epoch and components are in activation units (std. dev.), which is what the help of pop_rejtrend.m already said and what pop_eegthresh.m shows. The matching EEGPrep pull request is 1060, already open; its two recorded cases are being recorded again from the corrected EEGLAB so its test exception can go.
Pull request: sccn/eeglab#1009
— eegprep, reported with orch done