You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use of "warn", "warnings.warn", "logger.warning" in the codebase #9432
I recently got a warning raised by plot_compare_evokeds that I somehow couldn't switch off using mne.utils.use_log_level(0):
:50: RuntimeWarning: Only 1 channel in "picks"; cannot combine by method "mean".
cmap=cmap,
:50: RuntimeWarning: Cannot find channel coordinates in the supplied Evokeds. Not showing channel locations.
cmap=cmap,
That led me down a bit of a rabbit hole and I saw that within the code base, there are several ways how warnings are raised. Is each of those ways desirable for the particular situation? Or is that something to be unified, to consistently make use of a feature (such as setting a log level that all warning calls respect).
Activity
agramfort commentedon May 30, 2021