eelbrain.load.mne.raw_ndvar
- eelbrain.load.mne.raw_ndvar(raw, i_start=None, i_stop=None, decim=1, reset_tmin=False, data=None, exclude='bads', sysname=None, adjacency=None)
Raw data as NDVar
- Parameters:
raw (BaseRaw | Path | str) – Raw instance, or path of a raw FIFF file..
i_start (int | Sequence[int]) – Start sample (see notes; default is the beginning of the
raw).i_stop (int | Sequence[int]) – Stop sample (see notes; default is end of the
raw).decim (int) – Downsample the data by this factor when importing.
1(default) means no downsampling. Note that this function does not low-pass filter the data. The data is downsampled by picking out every n-th sample.reset_tmin (bool) – Set the time axis of each
NDVarin the output to begin at 0. By default, the NDVars wll retain time information from the raw data.data (str) – The kind of data to include (e.g.,
"meg"; seemne.pick_types()). By default, guess based on the data inraw.exclude (str | Sequence[str]) – Channels to exclude (
mne.pick_types()kwarg). If ‘bads’ (default), exclude channels in info[‘bads’]. If empty do not exclude any.sysname (str) – Name of the sensor system to load sensor adjacency (e.g. ‘neuromag306’, inferred automatically for KIT data converted with a recent version of MNE-Python).
adjacency (str | Sequence[tuple[str, str]] | ndarray) –
Adjacency between elements. Can be specified as:
"none"for no connectionslist of connections (e.g.,
[('OZ', 'O1'), ('OZ', 'O2'), ...])numpy.ndarrayof int, shape (n_edges, 2), to specify connections in terms of indices. Each row should specify one connection [i, j] with i < j. If the array’s dtype is uint32, property checks are disabled to improve efficiency."grid"to use adjacency in the sensor names
If unspecified, it is inferred from
sysnameif possible.
- Returns:
data – Data (sensor or source space). If
i_startandi_stopare scalar then a single NDVar is returned, if they are lists then a list of NDVars is returned.- Return type:
Notes
i_startandi_stopare interpreted as event indexes (frommne.find_events()), i.e. relative toraw.first_samp.