eelbrain.pipeline.RawSource

class eelbrain.pipeline.RawSource(sysname=None, rename_channels=None, montage=None, adjacency=None, **kwargs)

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) – Rename channels based on a {from: to} dictionary. This happens after calling the reader, and before applying the montage. Useful to convert system-specific channel names to those of a standard montages.

  • montage (str) – Name of a montage that is applied to raw data to set sensor positions (see mne.io.Raw.set_montage()).

  • adjacency (str | list[tuple[str, str]] | Path) –

    Ajacency between sensors. Can be specified as:

    • 'auto' to use mne.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 connections

    • list of connections (e.g., [('OZ', 'O1'), ('OZ', 'O2'), ...])

    • numpy.ndarray of 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 sysname if possible.

  • ...