Repository navigation
Port pop_studydesign New variable for continuous trial factors - #448
Merged
suraj-ranganath merged 4 commits intoOct 12, 2026
Merged
Conversation
The design editor New button opens Add variable, including a continuous factor such as rt, and OK updates STUDY.design and trialinfo. Co-authored-by: Suraj Ranganath <[email protected]>
Contributor
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
OK now updates every changed design through std_makedesign, including rename, delete, subject selection, edit, list factors, and resave. Co-authored-by: Suraj Ranganath <[email protected]>
Empty designs record variable1 and variable2 as none so replaying the history does not restore condition, and pairing follows the same trial and dataset rules as std_getindvar. Co-authored-by: Suraj Ranganath <[email protected]>
A 1xN STUDY.design array arrives as a nested list. Trial-factor pairing stays on the subject-overlap rule the existing helpers already check. Co-authored-by: Suraj Ranganath <[email protected]>
suraj-ranganath
marked this pull request as ready for review
October 12, 2026 23:07
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.
Contributor
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
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.
The STUDY design editor now runs the controls that are visible in the current EEGLAB pop_studydesign dialog. OK writes changed designs through std_makedesign, selects the highlighted design, and resaves when the STUDY already has a file name. The MATLAB reference GUI run still has to be done before merging. GitHub Actions replays the dialog command history in EEGLAB through the matlab-batch engine and compares STUDY.design for New, Rename, Delete, a combined categorical value, a continuous variable, and an empty design.
Audit of pop_studydesign.m controls and callbacks:
std_makedesign accepts variable1 through variable4. The dialog no longer refuses a fifth variable. OK keeps the first four, which is what EEGLAB persists. An empty design records variable1='none' and variable2='none' with defaultdesign='off'. EEGLAB's recorded command omits those labels, and running that command later restores the default condition variable. Design removal is recorded as executable Python, del STUDY['design'][index], and the MATLAB comparison evals EEGLAB's STUDY.design(index) = [].
Fixes #442