mne_nirs.channels.picks_pair_to_idx#

mne_nirs.channels.picks_pair_to_idx(raw, sd_pairs, on_missing='error')[source]#

Return a list of picks for specified source detector pairs.

If multiple channel have the same source detector pair, for example if there are multiple wavelengths or chromaphore, then all channels matching the requested sources and detectors will be returned.

Parameters:
rawinstance of Raw

The haemoglobin data.

sd_pairslist of lists

List of source detector pairs. For example, to request the picks for channels comprising of source 1 detector 4 and source 13 detector 4 you would specify [[1, 4], [13, 4]].

on_missingstr

What to do if one or several requested source detector are not found in the recording. Valid keys are ‘error’ | ‘warning’ | ‘ignore’ Default is ‘error’. If on_missing is ‘warning’ it will proceed but warn, if ‘ignore’ it will proceed silently. Note. If none of the event ids are found in the data, an error will be automatically generated irrespective of this parameter.

Returns:
pickslist of integers

List of picks corresponding to requested source detector pairs.

Examples using mne_nirs.channels.picks_pair_to_idx#

GLM Analysis (Measured)

GLM Analysis (Measured)

Group Level GLM Analysis

Group Level GLM Analysis

Group Level Waveform Analysis

Group Level Waveform Analysis

Signal Enhancement Techniques

Signal Enhancement Techniques