eegprep.eeg_compare#

eegprep.eeg_compare(eeg1, eeg2, verbose_level=0, trigger_error=False)#

Compare two EEG-like structures (or arrays) and return a difference summary.

Per-field findings are emitted through this module’s logger; the returned value is the human-readable summary string callers print or store.

Parameters#

eeg1dict, object, or numpy.ndarray

First EEG structure (or array) to compare.

eeg2dict, object, or numpy.ndarray

Second EEG structure (or array) to compare.

verbose_levelint, optional

Level of verbosity for logged output. Default 0.

trigger_errorbool, optional

Whether to raise a ValueError if differences are found. Default False.

Returns#

str

A summary describing the differences found, or that all fields match.