Getting Started¶
Installation¶
pip (recommended)¶
uv¶
If you use uv:
conda¶
Extras¶
- Neural Networks:
pip install "invertmeeg[ann]" - Visualization:
pip install "invertmeeg[viz]" - Documentation:
pip install "invertmeeg[docs]"
Quick Start¶
from invert import Solver
# Assume you have an mne.Forward and mne.Evoked object
# fwd = ...
# evoked = ...
solver = Solver("MNE")
solver.make_inverse_operator(fwd)
stc = solver.apply_inverse_operator(evoked)
stc.plot()
The Solver factory takes a solver_id string and returns the corresponding
solver instance. Browse the Solvers catalog to find the full
name and click-to-copy solver id for each method.