Repository navigation
[GUI] Artifact cleaning dialog - #1045
Open
arnodelorme wants to merge 2 commits into
Open
arnodelorme wants to merge 2 commits into
arnodelorme wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
This was referenced Dec 1, 2026
…lean_rawdata-dialog
Contributor
arnodelorme
commented
Dec 1, 2026
arnodelorme
left a comment
Collaborator
Author
There was a problem hiding this comment.
This review was written by an AI assistant during a nightly check, not by Arno.
Code review
- Overall assessment: Needs changes for the section toggle mismatch between the added documentation and the dialog specification. Recorded
superguigeometry,geomvert,fit_width=Falseflags, label spacing, and single dataset layout match EEGLAB. - Highest-risk area: Documentation in
docs/source/api/preprocessing_and_artifacts.rstclaiming that checking a section enables its thresholds when three section checkboxes have notoggle_enabledcallbacks and the drift text label remains disabled. - Merge recommendation: Needs changes.
Blocking
None.
Important
- Added docs claim section checkboxes enable their thresholds, which does not match
pop_clean_rawdata_dialog_spec(docs/source/api/preprocessing_and_artifacts.rstlines 14 to 16,src/eegprep/plugins/clean_rawdata/pop_clean_rawdata.pylines 120 to 133, andsrc/eegprep/plugins/clean_rawdata/pop_clean_rawdata.pylines 171 to 209). Line 15 ofpreprocessing_and_artifacts.rststates: "Check a section to enable its thresholds." Inpop_clean_rawdata_dialog_spec,chanrm,asr, andrejwinall start checked (value=True) and have notoggle_enabledcallbacks, so unchecking or checking them in the dialog leaves all of their threshold controls enabled (unlikecb_chan,cb_asr, andcb_rejin EEGLABplugins/clean_rawdata/pop_clean_rawdata.mlines 48 to 50). In the drift section (filter), checking the box enablesfilterfreqs, while the label updated on line 129 (enabled=False) has notagand stays disabled instead of enabling alongsidefilterfreqsascb_filterdoes inpop_clean_rawdata.mlines 47 and 56. Suggested fix: either update line 15 ofdocs/source/api/preprocessing_and_artifacts.rstto describe actual dialog behavior (channel, ASR, and window rejection sections open enabled by default, while checking Remove channel drift enables the transition band input) and add a tag on line 129 sofilteralso enables its label, or wireCallbackSpec("toggle_enabled", ...)ontochanrm,asr, andrejwinwith distinct tags on the section labels (keepingchanuse_buttonandchanignore_buttongated onbool(labels)when channel labels are absent).
Nits
None.
Test gaps
None.
EEGLAB parity notes
- Checked against EEGLAB
plugins/clean_rawdata/pop_clean_rawdata.m(lines 47 to 118) and the recordedpop_clean_rawdata.continuousgeometry at5e0be87059098662dc9b50fb378f9002b0ef173a: control order,geometry,geomvert, the 12 trailing spaces on the FIR transition band label (line 56), andfit_width=Falseonasrrejand bothasrwintextlabels (where'tag'precedes'string'inuiliston lines 83, 86, and 88 sosupergui.momits them from figure width calculation) all match EEGLAB. - Offscreen Qt verification on macOS (
QtDialogRenderer().build_dialog) rendered all 30 visible controls at 722 by 815 px with zero horizontal text clipping. - Tests run in a detached worktree at
cd8e9d1e2d05693b9bee96b7831f4c01529eb26aon macOS:EEGPREP_SKIP_MATLAB=1 pytest tests/test_gui_geometry.py tests/test_gui_pop_clean_rawdata.py tests/test_clean_rawdata_channel_removal.py tests/test_guifunc_pophelp_chansel.py tests/test_guifunc_primitives.py(152 passed, 55 Linux pixel reference cases skipped, 3 deselected),ruff checkandruff format --checkon the two modified Python files (passed), andty checkonpop_clean_rawdata.py(passed).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Artifact cleaning dialog · #1008, part of #875. Stack base PR #1044.
Across 1 native openings, maximum vertical control displacement was 0.50 px. The largest difference in overall width was 3.48 px. Of 3 output comparisons, 3 met tolerance. Continuous sample, five-second flatline detector only; zero, one or two channels held constant for the controlled tests. Also verified the ordered retained labels. Raw outputs, commands and checks are in tools-extra/numeric-inputs/.
Clean Linux checkouts on jamming. EEGLAB
5e0be87059098662dc9b50fb378f9002b0ef173a, EEGPrepcd8e9d1e2d05693b9bee96b7831f4c01529eb26a. Fixes #1008.Full inventory report for the project team. pop_clean_rawdata (p. 79). PDF · Editable Word.