Skip to content

[GUI] Match the pop_leadfield dialog to EEGLAB #1000

Done

Description

@arnodelorme

🤖 #1038

The public leadfield dialog follows the selected atlas for the source file, coordinate transform, and downsampling. The transform button previews supported source positions with the configured head model. The largest vertical offset after the change was 0.49 px. This PR stacks on #1028.

pop_leadfield.fit-triptych

distances

The 30 registered sample electrodes gave the same BEM leadfields at three explicit MNI locations within 3.37e−15 relative to FieldTrip. The installed standalone LORETA grid is an approximation. The other bundled MATLAB atlas files are not distributed by EEGPrep.

Native captures and verification

The clean jamming capture verified the checkout imports before opening each window. Focused geometry and DIPFIT test results were 209 passed in 3.73s.

Verification and history

Compare the two native windows on jamming, including input, submission and output. Record both checkout SHAs and verify the active Python import path. Part of #875. Follow-up to #553, [Release readiness] Stream 8: ICLabel, component properties, DIPFIT.

Activity

  1. claude commented on Dec 1, 2026

    @claude
    Contributor

    🤖 Plan:

    • Fetch issue and check actionability
    • Duplicate-work preflight
    • Hand off to existing PR (no new PR opened)

    Research

    The issue is the tracking issue for an implementation that already exists: open PR #1038 (agent/issue-1000-leadfield, "Match the pop_leadfield dialog on configured MRI data") carries Fixes #1000 and stacks on #1028. A parallel PR would duplicate that work, and the change is a multi-module GUI/DIPFIT feature well over the 100-line scope for an automated fix.

    Proposed Fix

    None from me. Next steps are on #1038: land #1028 first, then review #1038 with the side-by-side native captures. If it changes leadfield numbers, it also needs a MATLAB/FieldTrip reference run and human approval under AGENTS.md. Merging #1038 closes this issue.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions