Repository navigation
Description
EEGPrep checks each EEGLAB function on its own, in one issue, for both the window and the numbers (Arno, November 26, 2026). This issue is pop_importdata, File menu: Import data > From ASCII/float file or MATLAB array. It stays open until the window and the numbers are both acceptably close to EEGLAB's, even when a pull request is merged or closed.
- Window: needs work. The note on channel locations, rows that share the height (722), the Enter comments button and the bold labels (759), all merged. Arno on the Mac, November 27: still too much vertical blank space.
- Numbers: close to EEGLAB. 10 test cases of 10 identical to EEGLAB (data, rate, channels, epochs, channel locations, dataset fields). EEGPrep accepts 'data' before 'nbchan', EEGLAB does not.
- What remains: Merge 776: no fixed height, the window is as high as its rows (rule 26). Mac capture of that version. Auto detect as first choice (F17).
- Fixes (sub-issues): pop_importdata window: text squeezed and the channel location note missing (shared layout) #700, pop_importdata window: Enter comments button and two bold labels as in EEGLAB #756, pop_importdata window: no fixed height, the rows set it with one row height per platform #775
- Open pull requests: [GUI] Size a dialog from its rows, one row height per platform, never shorter than its content #776
- Menu issue: EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report #696. The progress of every function is in the table of https://github.com/adelorme-assistant/project_eegprep#progress-of-the-port
Graphics
Pull request 776 now: no fixed height, the window is as high as its rows, 28 pixels each (rule 26). Linux: EEGLAB, EEGPrep before, EEGPrep after. The Mac capture comes tonight.
Numerical difference with EEGLAB
All 10 test cases give exactly EEGLAB's result (data, sampling rate, channels, points, epochs, times, channel locations, dataset fields).
Earlier captures
The window (issue 700): EEGLAB, EEGPrep before, EEGPrep after. The rows now share the height and the note on channel locations is back.
Enter comments button and two bold labels (issue 756, merged as pull request 759): EEGLAB, EEGPrep before, EEGPrep after. The capture is of the first version, pull request 757, closed as a duplicate.
The window with the shared row heights of pull request 722 as well, next to EEGLAB.
November 27, issue 775: EEGLAB, EEGPrep develop (1150 by 480) and EEGPrep with the height of its content (1150 by 389), on jamming.
The same with the native Mac style: develop and after.
After Arno's answer (too much space, then not enough): real window on the Mac at 480, 385 and now 430 pixels (pull request 776).
The same on jamming, with EEGLAB (450) on top.
Captured on jamming under a virtual screen (EEGLAB with getframe, EEGPrep with the Qt widget grab), and on the Mac where said.
The window: what differs from EEGLAB
- EEGLAB has an Enter comments button where EEGPrep had an edit box, and two more labels are bold in EEGLAB. Both are merged (pull request 759).
- EEGPrep lists Auto detect as the first data format (finding F17).
- Arno on his Mac, November 27: still a lot of vertical blank space. The window was fixed at 1150 by 480 and its 13 rows shared that height. A first version let the content set the height (385 pixels), which he found too tight. Pull request 776 is now 430 pixels high, in the middle.
The numbers: same file in both programs
eeglab_data.fdt(float32): the same data and fields (case N10).- EEGLAB needs
'nbchan'before'data'in the call. EEGPrep accepts either order (case N9).
Files
- Before and after report (Word and PDF): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/pr-700
- File menu report with Arno's comments: https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/file-menu-2026-11-26
- Rules for the window work: https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md









Activity
claude commentedon Nov 27, 2026
🤖 Plan:
functions/popfunc/pop_importdata.m(sccn/eeglab develop), andpop_importdata_dialog_specpop_importdata.pydialog spec (geometry, column weights, note row)Research
Each of the three window items in "What remains" can be traced to
pop_importdata_dialog_spec. EEGLAB uses a pushbutton for comments that stores its text in the figureuserdataand returns it as the second output ofinputgui(newcomments). EEGPrep'sDialogSpechas no hidden or userdata value, so EEGPrep shows an edit box taggedcommentsinstead.Relevant code
pop_importdata.py#L157-L167: bold labels, format popup (value=6, Auto detect)pop_importdata.py#L169-L183: the label/edit rows;commentsis an edit boxpop_importdata.py#L185-L191: chanlocs/ICA rows, none boldpop_comments.py#L15-L61: existing comments dialog to reuse_file_io.py#L69-L82:infer_dataformat, which handles 'auto'Proposed Fix
'fontweight','bold'). Addfont_weight='bold'to those twoControlSpec('text', ...)entries. EEGLAB also makes the format popup bold, and ends the two ICA labels with a colon and writes "from other dataset" in lower case. Fold those into the same change if exact matching is wanted.commandsetfiletype) picks the format from the extension (.mat→5, .fdt→3, .txt→2). There are two options:a. Match EEGLAB: drop "Auto detect", default to entry 1, and make the Browse callback set
dataformatfrominfer_dataformat. The'auto'keyword stays for command-line use only.b. Keep "Auto detect" but move it to the end and default to entry 1, which only partly fixes F17.
I recommend (a), because it keeps the useful inference and matches the window.
commentsedit box withControlSpec('pushbutton', 'Enter comments', tag='enter_comments', callback=CallbackSpec('run_dialog_action', ...)). The action callspop_comments(...)and stores the text in a dialog value that the button does not show. Two ways to store it:a. Add generic dialog state to
inputgui/the Qt renderer thatupdate({...})can write and the results return, like MATLABuserdata. This affects every dialog.b. Keep a hidden
editcontrol taggedcomments(needs avisible=Falseoption onControlSpecif none exists).(b) is smaller. Either way,
pop_editset's dialog may want the same button later.Suggested order: wait for #722 to merge, then one sub-issue/PR for 1+2 (about 20 lines plus a dialog-spec test) and one for 3 (GUI code plus a test that clicks the button, enters text, and checks that
commentsreachesEEG['comments']). The numbers part needs no change: accepting'data'before'nbchan'(N9) is a harmless superset of what EEGLAB accepts.Questions: For item 2, (a) or (b)? For item 3, generic dialog state (a) or a hidden control (b)?
arnodelorme commentedon Nov 27, 2026
Arno wrote on November 27, 2026: "pop_importdata GUI still has a lot of vertical blank space below the text and the buttons to cancel and ok."
— orchestrator
suraj-ranganath commentedon Nov 28, 2026
On develop (
aa81d9ab), open the ASCII/float/MATLAB array import, enter a dataset name, leave the data field blank and click Ok. The form closes before “requires a data file or array” appears. Retrying means typing the name and options again.Validate the data field before closing, keep the other values and return focus to the missing input. Check that choosing the 4 × 512 fixture from that same form imports all 2,048 samples, adds one dataset and records one command. Cancel after the error should discard the entry. pop_importdata.m L243 · pop_importdata.py L33
arnodelorme commentedon Dec 1, 2026
🤖 New Linux layout finding for pop_importdata, with before and after captures and numerical verification, is tracked in #922 and PR #921.