From 9146a818998af7e6a4ec72ea18beee97f19825b6 Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Sat, 25 Jan 2025 07:48:04 +0200 Subject: [PATCH 1/2] Fix _close() on MNEAnnotationsFigure and MNESelectionFigure --- mne/viz/_mpl_figure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mne/viz/_mpl_figure.py b/mne/viz/_mpl_figure.py index 2e552bd4012..2f6c64b5a2c 100644 --- a/mne/viz/_mpl_figure.py +++ b/mne/viz/_mpl_figure.py @@ -186,7 +186,7 @@ def _inch_to_rel(self, dim_inches, horiz=True): class MNEAnnotationFigure(MNEFigure): """Interactive dialog figure for annotations.""" - def _close(self, event): + def _close(self, event=None): """Handle close events (via keypress or window [x]).""" parent = self.mne.parent_fig # disable span selector @@ -275,7 +275,7 @@ def _set_active_button(self, idx, *, draw=True): class MNESelectionFigure(MNEFigure): """Interactive dialog figure for channel selections.""" - def _close(self, event): + def _close(self, event=None): """Handle close events.""" self.mne.parent_fig.mne.child_figs.remove(self) self.mne.fig_selection = None From 5901ceb660410ba46e64001f44011541b7fca65f Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Sat, 25 Jan 2025 08:44:35 +0200 Subject: [PATCH 2/2] touch this example to trigger circleci to rebuild it --- tutorials/epochs/60_make_fixed_length_epochs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/epochs/60_make_fixed_length_epochs.py b/tutorials/epochs/60_make_fixed_length_epochs.py index 04a4ec87c7d..0920c14d457 100644 --- a/tutorials/epochs/60_make_fixed_length_epochs.py +++ b/tutorials/epochs/60_make_fixed_length_epochs.py @@ -11,7 +11,7 @@ We will also briefly demonstrate how to use these epochs in connectivity analysis. -First, we import necessary modules and read in a sample raw data set. +First, we import the necessary modules and read in a sample raw data set. This data set contains brain activity that is event-related, i.e., synchronized to the onset of auditory stimuli. However, rather than creating epochs by segmenting the data around the onset of each stimulus, we will