Skip to content

Port STUDY dipole plotting behavior - #367

Merged
arnodelorme merged 1 commit into
work/testports-study-measure-grouping-integratedfrom
work/testports-study-dipole-source-integrated
Sep 19, 2026
Merged

arnodelorme merged 1 commit into
work/testports-study-measure-grouping-integratedfrom
work/testports-study-dipole-source-integrated

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

Ports the maintained std_dipplot method into substantive selection, centroid, inspectable source-model, and Matplotlib behavior over existing DIPFIT results. Implements the joined and centroid intent that the pinned MATLAB implementation silently ignores, while retaining one-based cluster/member semantics, coordinate validation, docs, help, and parity coverage.

@suraj-ranganath

Copy link
Copy Markdown
Member Author

🤖 Problem

The current wrapper invokes joined and centroid modes, but pinned EEGLAB only recognizes apart, together, and multicolor; both maintained calls silently return without plotting or asserting source behavior. EEGPrep previously exposed only a limitation boundary.

Approach

Implement the intended modes plus the official layouts over already-localized EEG.dipfit.model entries. Preserve one-based STUDY cluster and member positions, validate coordinate systems and model shapes, return exact inspectable source inputs, compute cluster centroids, and render figures without claiming to perform localization.

Key code

std_dipplot.py handles membership resolution, bilateral models, centroids, styles, and layouts. The provenance test exercises both maintained calls and asserts dataset/component identity, coordinates, moments, residual variance, selection semantics, labels, invalid models, coordinate incompatibility, and every supported layout.

Tests

78 integrated STUDY/DIPFIT tests passed under warnings-as-errors. Agent validation covered 153 tests with one expected external skip; Ruff, formatting, ty, pre-commit, and Sphinx rendering passed apart from 12 known unrelated documentation warnings. The upstream mode mismatch is recorded in Bead eegprep-uia.29 for an authorized upstream report.

@claude

claude Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@suraj-ranganath
suraj-ranganath marked this pull request as ready for review September 14, 2026 10:10
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-study-dipole-source-integrated branch from 1cc14b3 to f3fc407 Compare September 14, 2026 10:10

@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's credit balance is too low for Code Review to run.

An organization admin can purchase credits or upgrade the plan in Plans & Billing.

Once credits are available, reopen this pull request to trigger a review.

@suraj-ranganath
suraj-ranganath force-pushed the work/testports-study-dipole-source-integrated branch from f3fc407 to 21dff87 Compare September 14, 2026 10:23
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-study-dipole-source-integrated branch from 21dff87 to fcc13d8 Compare September 14, 2026 10:38
@suraj-ranganath
suraj-ranganath force-pushed the work/testports-study-dipole-source-integrated branch from fcc13d8 to 09c1d8c Compare September 14, 2026 10:44
@arnodelorme
arnodelorme merged commit 6137b84 into develop Sep 19, 2026
9 checks passed
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.

2 participants