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
lhLabel

Label for the left hemisphere.

rhLabel

Label for the right hemisphere.

nameNone | str

A name for the label. It is OK to change that attribute manually.

subjectstr | 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.