Add DUNEuro 2026 FEM backend and UI#882
Draft
tmedani wants to merge 10 commits intobrainstorm-tools:masterfrom
Draft
Add DUNEuro 2026 FEM backend and UI#882tmedani wants to merge 10 commits intobrainstorm-tools:masterfrom
tmedani wants to merge 10 commits intobrainstorm-tools:masterfrom
Conversation
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.
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
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.
Add DUNEuro 2026 FEM backend and UI
Introduce support for the DUNEuro 2026 workflow:
Part1: First PR
Fully tested for EEG/sEEG and partially tested for MEG.
More to bed added.