SourceSpace.index_for_label(self, label)

Return the index for a label

label : str | sequance of str | Label | BiHemiLabel

The name of a region in the current parcellation, or an mne Label object. If the label does not match any sources in the SourceEstimate, a ValueError is raised.

index : NDVar of bool

Index into the source space dim that corresponds to the label.