eelbrain.SourceSpace.index_for_label
- SourceSpace.index_for_label(label)
Return the index for a label
- Parameters:
label (str | Sequence[str] | Label | BiHemiLabel) – The name of a region in the current parcellation,
'lh'
,'rh'
, or anmne
Label
object. If the label does not match any sources in the SourceEstimate, a ValueError is raised.- Returns:
index – Index into the source space dim that corresponds to the label.
- Return type:
boolean NDVar