dirconn.simulation.headmodel.load_head_model#

dirconn.simulation.headmodel.load_head_model(modality: str, *, path: str | Path | None = None) → HeadModel#

Load the head model of the MNE sample subject for one sensor type.

The dataset is located with dirconn.datasets.require_sample(), so nothing is downloaded and a missing dataset stops with instructions. The result is cached per modality and dataset.

Parameters:
  • modality ({"eeg", "mag", "grad"}) – EEG, MEG magnetometers or MEG planar gradiometers.

  • path (path-like, optional) – Passed to require_sample().

Return type:

HeadModel