eelbrain.pipeline.RawSource
- class eelbrain.pipeline.RawSource(sysname=None, rename_channels=None, montage=None, adjacency=None, **kwargs)[source]
Raw data source
- Parameters:
sysname (str) – Used to determine sensor positions (not needed for KIT files, or when a montage is specified).
rename_channels (dict) – The names the
montageuses for channels in the data, as a{data_name: montage_name}dictionary. The montage is renamed accordingly before it is applied, so that channel names in the data (as defined by the BIDS dataset) are never modified. Ifadjacencyis a builtin adjacency name, its channels are renamed in the same way. Useful when the data uses a naming convention different from a standard montage.montage (str | mne.channels.DigMontage) – Montage that is applied to raw data to set sensor positions (see
mne.io.Raw.set_montage()), as a standard montage name (seemne.channels.make_standard_montage()) ormne.channels.DigMontageinstance.adjacency (str | list[tuple[str, str]] | Path) –
Adjacency between sensors. Can be specified as:
'auto'to usemne.channels.find_ch_adjacency()Pre-defined adjacency (one of
mne.channels.get_builtin_ch_adjacencies())Path to load adjacency from a file
"none"for no connections"grid"for grid 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.
If unspecified, it is inferred from
sysnameif possible. When usingrename_channels, only a builtin adjacency name is translated to data channel names; an adjacency specified as a file or as an explicit list of connections must already use the channel names in the data (edges with unknown channel names are silently dropped)....