mne.simulation.select_source_in_label

mne.simulation.select_source_in_label(src, label, random_state=None)

Select source positions using a label

Parameters:

src : list of dict

The source space

label : Label

the label (read with mne.read_label)

random_state : None | int | np.random.RandomState

To specify the random generator state.

Returns:

lh_vertno : list

selected source coefficients on the left hemisphere

rh_vertno : list

selected source coefficients on the right hemisphere