Repository navigation
[GUI] Edit participant values beside their BIDS column descriptions - #1052
arnodelorme wants to merge 4 commits into
Conversation
|
🤖 Review before taking this out of draft. State. The updated parent (#1050) is merged in ( What I checked. One row per participant (datasets of the same subject share a row), columns can be added, removed and imported from a TSV or CSV file, and the column descriptions keep Levels and Units. The import refuses a table without Findings, none blocking.
Verdict: ready for review. |
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.
|
Claude finished @arnodelorme's task in 1m 42s —— View job Code review
BlockingNone. Important
Nits
Test gaps
EEGLAB parity notes
|
| from PySide6.QtWidgets import QFileDialog, QGridLayout, QHBoxLayout, QInputDialog, QLabel, QMessageBox, QPushButton | ||
|
|
||
| QDialog, QDialogButtonBox, _, Item, QVBoxLayout = _qt_widgets("pop_participantinfo") |
There was a problem hiding this comment.
Important (error handling). This unguarded PySide6 import runs before _qt_widgets("pop_participantinfo"), so the guard never runs. Without Qt, pop_participantinfo(EEG, gui=True) raises a bare ModuleNotFoundError: No module named 'PySide6' instead of the "Install it with pip install eegprep[gui]" message from _qt_widgets (
eegprep/src/eegprep/plugins/EEG_BIDS/bids_tools.py
Lines 1125 to 1133 in 823af5d
gui=True calls now come here too, so more users can hit this.
Fix: call _qt_widgets first so its error fires before this import.
| from PySide6.QtWidgets import QFileDialog, QGridLayout, QHBoxLayout, QInputDialog, QLabel, QMessageBox, QPushButton | |
| QDialog, QDialogButtonBox, _, Item, QVBoxLayout = _qt_widgets("pop_participantinfo") | |
| QDialog, QDialogButtonBox, _, Item, QVBoxLayout = _qt_widgets("pop_participantinfo") | |
| from PySide6.QtWidgets import QFileDialog, QGridLayout, QHBoxLayout, QInputDialog, QLabel, QMessageBox, QPushButton | |
| columns.verticalHeader().hide() | ||
| columns.setColumnHidden(0, True) | ||
| columns.verticalHeader().show() |
There was a problem hiding this comment.
Nit. Line 842 hides columns.verticalHeader() and line 844 shows it again, so the hide() call does nothing and can be removed.
| columns.verticalHeader().hide() | |
| columns.setColumnHidden(0, True) | |
| columns.verticalHeader().show() | |
| columns.setColumnHidden(0, True) |
Participant values and metadata now appear side by side. The public editor preserves custom columns and their descriptions, groups repeated subjects across recordings, and can import columns from a TSV or CSV matched by participant ID. Stacked on #1050 (
agent/issue-875-file-eventinfo).Measurements and verification
Native client dimensions on jamming were 1300.0 × 600.0 px in MATLAB, 278 × 442 before and 913 × 492 after. The Qt table went from 278 × 442 to 913 × 492 pixels. MATLAB uses a fixed 1300 × 600 window. Three actual participant-table submissions retained the same participant ID and ages 21, 22 and 23 in both applications. A regression also verifies that two recordings for one subject reopen as one row and keep their custom metadata. The File/BIDS suites passed 115 tests with 5 deselected. The Qt capture used the guarded checkout on PYTHONPATH.
Closes #1053. Part of #875.
Full inventory report for the project team. pop_participantinfo (p. 14). PDF · Editable Word.