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
Interpolate bridged electrodes silently interpolates using bads #14263
The issue:
The behavior of mne.preprocessing.interpolate_bridged_electrodes is to compute the interpolation matrix based on all available non-bridged electrodes, independently of their presence in info["bads"]. This silent behavior can lead to data from "bads" being mixed into the data if the user is not aware of this. Since there is no note of this in the documentation, the user has to either identify the issue visually (with which minor bad channel issues may be imperceptible) or read through the code.
A solution:
While this can be avoided by the user by manually dropping those channels from the interpolation, a more natural behavior would be for interpolate_bridged_electrodes to handle this itself. Either by default, by providing an option, or at least by warning the user and documenting this behavior.
Activity
welcome commentedon Sep 2, 2026
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴
larsoner commentedon Sep 2, 2026
I agree at least a warning would be useful here, PR welcome to work on a fix!
FIX: Exclude pre-existing bads from bridged interpolation
FIX: Exclude pre-existing bads from bridged interpolation