From a0c8fb465a4e214e33a1ba8acf28aa977b4c9c83 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Fri, 26 Jan 2024 14:48:48 -0500 Subject: [PATCH] FIX: Fixes --- mne/_fiff/pick.py | 2 +- tutorials/inverse/95_phantom_KIT.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mne/_fiff/pick.py b/mne/_fiff/pick.py index ba6ee5c6d25..9e2e369ab71 100644 --- a/mne/_fiff/pick.py +++ b/mne/_fiff/pick.py @@ -689,7 +689,7 @@ def pick_info(info, sel=(), copy=True, verbose=None): with info._unlock(): info["custom_ref_applied"] = FIFF.FIFFV_MNE_CUSTOM_REF_OFF # remove unused projectors - if info.get("projs", []): + if info.get("projs", False): projs = list() for p in info["projs"]: if any(ch_name in ch_set for ch_name in p["data"]["col_names"]): diff --git a/tutorials/inverse/95_phantom_KIT.py b/tutorials/inverse/95_phantom_KIT.py index aa424da35b5..75e0025a9c2 100644 --- a/tutorials/inverse/95_phantom_KIT.py +++ b/tutorials/inverse/95_phantom_KIT.py @@ -64,8 +64,7 @@ fig.axes[0].axvline(dip_freq, color="r", ls="--", lw=2, zorder=4) # %% -# Now we can figure out our epoching parameters and epoch the data, sanity checking -# some values along the way knowing how the stimulation was done. +# Now we can figure out our epoching parameters and epoch the data and plot it. tmin, tmax = -0.08, 0.18 epochs = mne.Epochs(raw, tmin=tmin, tmax=tmax, decim=10, picks="data", preload=True)