Skip to content

[GUI] Add the Enter comments button and two bold labels to pop_importdata - #757

Closed
arnodelorme wants to merge 1 commit into
developfrom
agent/issue-756
Closed

arnodelorme wants to merge 1 commit into
developfrom
agent/issue-756

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

The pop_importdata window has EEGLAB's Enter comments button in place of an edit box. It opens the comments editor (pop_comments) and the text goes to the dataset. Data sampling rate (Hz) and Channel location file or info are bold, as in EEGLAB. The import code is unchanged. Merges cleanly with pull request 722.

Fixes #756
Part of #737

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

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.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Captures: EEGLAB, EEGPrep before and EEGPrep after, then the window with pull request 722 merged as well, taken on jamming under a virtual screen.

pop_importdata window, before and after

pop_importdata window, before and after

The same window with pull request 722 merged too

The same window with pull request 722 merged too

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 40s —— View job


Code review

  • Read the diff and context

  • Compare with pop_comments and the other dialog stylesheet patterns (the vendored pop_importdata.m is not in this checkout)

  • Review correctness, conventions and tests

  • Post review

  • Overall assessment: Looks good.

  • Highest-risk area: None identified.

  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

EEGLAB parity notes

None.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests and CLAUDE.md/AGENTS.md compliance. What I verified:

  • How comments move through the dialog. If comments= is passed to the GUI, it is removed from initial and goes into the button's shared dict (pop_importdata.py:35). It is then merged back with result | comments (:40), so a comment you pass in survives even if the button is never clicked. Cancelling the comments editor returns the old string, because pop_comments returns original when given a string. Cancelling the main dialog still returns eeg_emptyset(). Empty comments are dropped by the != '' filter, so they don't show up in the history command.
  • The import code is unchanged. eeg_from_data(comments=...) and _history_command still pick up comments from options as before.
  • The test. test_importdata_has_eeglab_comments_button_and_bold_labels drives the real Qt dialogs. It checks that the two labels render bold and that the edited text ends up in EEG['comments'], which is the behavior this PR changes. There are no mocks and nothing tautological.
  • Repo conventions. extra_stylesheet sizing and run_dialog_action callbacks are used the same way as in pop_editset, pop_runica and the _dataset_selector in this file. The core import function is unchanged, so this does not need an EEGLAB reference-suite run.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

The bot called this pull request safe, but it has the same problem the bot found in #759: a comment of several lines from the pop_comments text box goes into the history command with a raw line break, because _history_command here is unchanged. Both pull requests fix issue #756. #759 is the one to keep: it now carries the history fix (commit c87cb15), sets the bold labels directly instead of matching label text afterwards, keeps the comments as the button's stored value like EEGLAB's figure userdata, and adds the changelog line. I suggest closing this one once #759 is merged; I left it open for Arno to decide.

— orchestrator

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

Superseded by #759, which fixes the multi-line comment history replay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pop_importdata window: Enter comments button and two bold labels as in EEGLAB

1 participant