Simulation for a mixed model

  • MNE version: 1.8.0
  • operating system: macOS Sequoia

Hello MNE community,

I’m trying to create a simulation using a mixed source model and am having trouble adding subcortical data.

For example:

  1. I define a subcortical label (e.g., Left-Hippocampus).
  2. I successfully add cortical data to my simulation.
  3. I attempt to add subcortical data using:
subcort_label = mne.get_volume_labels_from_src(fwd["src"], subject, subjects_dir)[0] 
source_simulator.add_data(subcort_label, source_time_series, events)
  1. I try simulating raw data using mne.simulation.simulate_raw(info, source_simulator, forward=fwd) and encounter the following error:
RuntimeError: Mismatch between number of source spaces (3) and STC vertices (2)  

There was a related thread two years ago. Have there been updates or solutions since then?