Skip to content

pop_importepoch window: one edit column for every row (EEGPrep and EEGLAB) #769

Done

Description

@arnodelorme

Arno tested develop on his Mac on November 27, 2026: "pop_importepoch -> currently no alignment." Pull request #714 had aligned one row only. The window still had three different left edges for its edit boxes (405, 485 and 590 pixels on the Mac).

Graphics

On Linux (jamming): EEGLAB before and after (sccn/eeglab#993), EEGPrep before and after.

pop_importepoch on Linux: EEGLAB before and after, EEGPrep before and after

On the Mac (real window): develop, then this pull request.

pop_importepoch on the Mac: before and after

Numerical difference with EEGLAB

pop_importepoch, distance between EEGLAB and EEGPrep

9 of 10 test cases give exactly EEGLAB's events (types, latencies, durations, epoch numbers). This pull request changes the window only, so these numbers are those of develop.

  • default time unit (fails): the same 159 events, with the same types, latencies and epoch numbers, but in another order. Without a time unit the latencies of the file are read as samples, so they fall after the end of their epoch. EEGLAB then sorts all events by latency, EEGPrep keeps them grouped by epoch.
  • In orange (9 cases): the numbers are the same, and EEGPrep's EEG.epoch has one more field than EEGLAB's, eventurevent.
The geometry
  • EEGLAB: every row with an edit box or a checkbox uses [2.5 1 0.6], and the file row [1.5 1 1.6], so that its edit box starts at the same place, after the Browse button.
  • EEGPrep: [2.5 1 1] for every row (its hints are longer than EEGLAB's NOTE), and [1.5 1 2] for the file row.
How the numbers were obtained
  • Test cases: a text file with and without a header line, the time unit in milliseconds and in seconds, a duration field, a type field, old events kept, a numeric array in place of a file, two latency fields, the default time unit, and no latency field. All are made from the real sample files eeglab_data.fdt, eeglab_data_epochs_ica.fdt and eeglab_data_epochs_ica.set.
  • Both programs: EEGLAB develop with MATLAB R2025b and EEGPrep develop (395f19e; the import code has not changed since, up to 2558e8e), the same call on the same file, on jamming.
  • Distance: the largest absolute difference between the two outputs divided by the largest absolute value of EEGLAB's output. Tolerance 1e-12. Counts, labels and text fields must be the same.
  • Scripts: notes/file-menu-row-height-2026-11-27/scripts of adelorme-assistant/project_eegprep (numeric_ref.m, numeric_py.py, histogram.py).

Part of #738

Activity

  1. added
    gui-parity
    on Nov 27, 2026
  2. claude commented on Nov 27, 2026

    @claude
    Contributor

    🤖 Plan:

    • Add a Qt test checking that all pop_importepoch edit boxes share one left edge (tests/test_stream9_gui_importers.py)
    • Align the edit column in src/eegprep/functions/popfunc/pop_importepoch.py
    • Pre-commit and ruff pass; non-GUI importepoch tests pass (12 passed)
    • Opened [GUI] Put every pop_importepoch edit box in one column #770
    • CI: the "Ruff and ty" job fails on tests/test_bdf_records_eeglab_tests.py formatting. That file is not in this PR and already fails on develop. The failure skips the unit-test jobs, so the new Qt test has not run yet.

    @arnodelorme pushed 0766cff to #770. It replaces the first geometry ([1.5 1 1.6] / [2.5 1 0.6]) with [1.708 1 1.792] / [2.5 1 1], keeps hints and labels whole, and updates the PR description. That commit is now the current state of the PR.

  3. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Ready in pull request #770 (opened by the automatic agent, corrected by the eegprep worker) and sccn/eeglab#993 for EEGLAB. Every row has one edit column in both programs. The agent's first version copied EEGLAB's weights, which in EEGPrep left the file box 43 pixels to the left and cut a hint and the long label: the measured version is on its branch (commit 0766cff). Captures in #770 and in #738.

  4. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Captures added for Arno to judge: the real window on the Mac and jamming, before and after, are in pull request #770, and in sccn/eeglab#993 for EEGLAB. develop is merged into #770 so its format check passes. Not merged.

  5. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    Status on November 27, 2026: still in progress, waiting for the captures in the pull request itself.

    • Where it stands: pull request [GUI] Put every pop_importepoch edit box in one column #770 (with its EEGLAB part, sccn/eeglab pull request 993) puts every edit box of pop_importepoch in one column. It is open and not merged.
    • Still in progress: Arno asked that the pull request hold everything he needs to accept it. The captures (EEGLAB, EEGPrep before and after, on Linux and on the Mac) move to the top of [GUI] Put every pop_importepoch edit box in one column #770, with a histogram of the numerical difference with EEGLAB over the test cases, and the text goes into folding sections.
    • Next: a PDF and a Word file with one page per function are sent to Arno, and this status is updated here.

    EEGLAB part: sccn/eeglab#993

    — orchestrator

  6. added a commit that references this issue on Nov 28, 2026
    06446a7
  7. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Final state (eegprep worker, November 29). Arno merged pull request #770 on November 28, and sccn/eeglab#993 the same day.

    • In develop: every pop_importepoch row with an edit box or a checkbox uses [2.5 1 1] and the file row [1.5 1 2], so the eight boxes start at the same pixel. The correction weights of the first version were dropped (commit 3d1345e, inside what was merged): since develop's commit 9ada0ae every control sits at its exact share of the row, as in EEGLAB, and the test is strict again (2 pixels at any width).
    • Numbers against EEGLAB: 9 of 10 test cases identical. With no time unit the same 159 events come in another order (EEGLAB sorts by latency, EEGPrep keeps them grouped by epoch), and EEG.epoch has one more field, eventurevent. Neither has its own issue yet.
    • Not done: the status email of November 28 was not sent, because Arno merged first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions