mne.BiHemiLabel

class mne.BiHemiLabel(lh, rh, name=None, color=None)[source]

A freesurfer/MNE label with vertices in both hemispheres.

Parameters
lhLabel

Label for the left hemisphere.

rhLabel

Label for the right hemisphere.

nameNone | str

name for the label

colorNone | color

Label color and alpha (e.g., (1., 0., 0., 1.) for red). Note that due to file specification limitations, the color isn’t saved to or loaded from files written to disk.

Attributes

lh

(Label) Label for the left hemisphere.

rh

(Label) Label for the right hemisphere.

name

(None | str) A name for the label. It is OK to change that attribute manually.

subject

(str | None) Subject the label is from.

Methods

__add__(self, other)

Add labels.

__hash__(self, /)

Return hash(self).

__len__(self)

Return the number of vertices.

__sub__(self, other)

Subtract labels.

__add__(self, other)[source]

Add labels.

__hash__(self, /)

Return hash(self).

__len__(self)[source]

Return the number of vertices.

__sub__(self, other)[source]

Subtract labels.