Skip to content

Commit

Permalink
TMP: bad debugging practice
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed May 28, 2024
1 parent b14d88c commit 3bee836
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mne_bids/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bee836

Please sign in to comment.