visbrain.utils.bipolarization

visbrain.utils.bipolarization(data, chans, to_ignore=None, sep='.')[source][source]

Bipolarize data.

Parameters:
data : array_like

The array of data of shape (nchan, npts).

chans : list

List of channel names of length nchan.

to_ignore : list | None

List of channels to ignore in the bipolarization.

sep : string | ‘.’

Separator to simplify electrode names by removing undesired name after the sep. For example, if channel = [‘h1.025’, ‘h2.578’] and sep=’.’, the final name will be ‘h2-h1’.

Returns:
datar : array_like

The re-referenced data.

channelsr : list

List of re-referenced channel names.

consider : list

List of boolean values of channels that have to be considered during the ploting processus.