eegprep.vis_artifacts#

eegprep.vis_artifacts(clean_eeg, original_eeg=None, *, show=True)#

Compare a cleaned dataset against its original clean_rawdata source.

Parameters:
  • clean_eeg (dict[str, Any]) – Cleaned EEG dictionary, usually returned by clean_artifacts.

  • original_eeg (dict[str, Any] | None) – Original EEG dictionary. Defaults to clean_eeg when omitted.

  • show (bool) – Open an eegplot browser when true; otherwise return diagnostics only.

Returns:

Diagnostics when show is false. When show is true, returns the eegplot window/model object if it can be opened, otherwise None.

Return type:

Any