Skip to content

Add DUNEuro 2026 FEM backend and UI#882

Draft
tmedani wants to merge 10 commits intobrainstorm-tools:masterfrom
tmedani:bst_dev_duneuro2026
Draft

Add DUNEuro 2026 FEM backend and UI#882
tmedani wants to merge 10 commits intobrainstorm-tools:masterfrom
tmedani:bst_dev_duneuro2026

Conversation

@tmedani
Copy link
Member

@tmedani tmedani commented Feb 8, 2026

Add DUNEuro 2026 FEM backend and UI

Introduce support for the DUNEuro 2026 workflow:
Part1: First PR

  • add new implementation bst_duneuro_2026.m
  • exports I/O to HDF5, writes sensors/source space, runs containerized DUNEuro tasks, reads leadfields
  • add a new GUI panel panel_duneuro2026.m.
  • Update other associated functions.
    Fully tested for EEG/sEEG and partially tested for MEG.
    More to bed added.

Introduce support for the DUNEuro 2026 workflow: add new implementation bst_duneuro_2026.m (exports FEM to HDF5, writes sensors/source space, runs containerized DUNEuro tasks, reads leadfields) and a new GUI panel panel_duneuro2026.m. Update duneuro_defaults.m with SrcModel2026 default. Integrate the new backend into bst_headmodeler.m so headmodeler can invoke bst_duneuro_2026 when OPTIONS.*Method == 'duneuro_2026' and include it in the method checks.
Rework bst_duneuro_2026 to use the DUNEuro container workflow and simplify I/O.
Removed the old and unused sections.
Rename and clean up DUNEuro2026 integration:
- Switch identifiers from 'duneuro_2026' to 'duneuro2026' in UI,
- Update panel name/comments,
- Streamline bst_duneuro_2026
-  Minor UI string tweaks and other small whitespace/comment cleanups.
@tmedani tmedani marked this pull request as draft February 10, 2026 20:05
Updates and bug fixes
Replace hardcoded thread settings with a configurable NbOfThread: bst_duneuro2026 now uses cfg.NbOfThread for transfer_matrix and leadfield nr_threads instead of '-1'.
Add automatic thread detection in duneuro_defaults (GetThreads) and expose cfgDef.NbOfThread and NbOfThreadMax defaults.
Update the duneuro2026 panel to add a "Number of Thread" solver option, wire the new jTextNbOfThread control into the panel state (visibility, validation, and GetPanelContents). Includes minor layout/whitespace adjustments and a safe fallback for single-threaded systems.
Replace hard-coded DUNEuro parameters with cfg-driven values and add a coil->channel transform builder.
Add options to process and write the anisotropic conductivity
update and Optimize the tensor interface
Minor typos corrections and adding options for chunk of dipoles
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.

1 participant