Stream#
- class stream.stream.Stream(sfreq: float, channels: pd.DataFrame | _PathLike | None = None, data: np.ndarray | pd.DataFrame | None = None, settings: NMSettings | str | PathLike | None = None, line_noise: float | None = 50, sampling_rate_features_hz: float | None = None, path_grids: str | PathLike | None = None, coord_names: list | None = None, stream_name: str | None = 'example_stream', is_stream_lsl: bool = False, coord_list: list | None = None, verbose: bool = True)[source]#
_GenericStream base class. This class can be inherited for different types of offline streams
- Parameters:
nm_stream_abc (stream_abc.NMStream)
- plot_raw_signal(sfreq: float | None = None, data: ndarray | None = None, lowpass: float | None = None, highpass: float | None = None, picks: list | None = None, plot_time: bool = True, plot_psd: bool = False) None [source]#
Use MNE-RawArray Plot to investigate PSD or raw_signal plot.
- Parameters:
sfreq (float) – sampling frequency [Hz]
data (np.ndarray, optional) – data (n_channels, n_times), by default None
lowpass (float, optional) – cutoff lowpass filter frequency
highpass (float, optional) – cutoff highpass filter frequency
picks (list, optional) – list of channels to plot
plot_time (bool, optional) – mne.io.RawArray.plot(), by default True
plot_psd (bool, optional) – mne.io.RawArray.plot(), by default False
- Raises:
ValueError – raise Exception when no data is passed