From 3bee836f032a4bd43aacb3f6140bc85676714510 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Tue, 28 May 2024 09:56:16 +0200 Subject: [PATCH] TMP: bad debugging practice --- mne_bids/inspect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mne_bids/inspect.py b/mne_bids/inspect.py index 45fd33e20..244fc64b5 100644 --- a/mne_bids/inspect.py +++ b/mne_bids/inspect.py @@ -208,7 +208,11 @@ def _keypress_callback(event): onset=[], duration=[], description=[], orig_time=raw.info["meas_date"] ) + # and plt.isinteractive() ? + # .lower() ? if matplotlib.get_backend() != "agg": + backend = matplotlib.get_backend() + raise ValueError(f"backend: {backend} ,... {backend.lower() != 'agg'}") plt.show(block=True) _global_vars["raw_fig"] = fig