From 35357f5294ebc26bc7085c4ee44e60be3a3f5ade Mon Sep 17 00:00:00 2001 From: shahoodakhode Date: Fri, 6 Feb 2026 05:27:52 +0530 Subject: [PATCH] Update evoked.py successfully corrected issue"Inconsistent behavior between Epochs and Evoked in get_data() method when picking EEG channels and bads are present.#12577" by excluding bad channels getting in data for evoked --- mne/evoked.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mne/evoked.py b/mne/evoked.py index 32475b37818..362306ffb1d 100644 --- a/mne/evoked.py +++ b/mne/evoked.py @@ -254,7 +254,7 @@ def get_data(self, picks=None, units=None, tmin=None, tmax=None): # Avoid circular import from .io.base import _get_ch_factors - picks = _picks_to_idx(self.info, picks, "all", exclude=()) + picks = _picks_to_idx(self.info, picks, "all", exclude=("bads")) start, stop = self._handle_tmin_tmax(tmin, tmax)