From dc15939b0fb04439fd36c358bcc998c04678ed13 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 3 Oct 2022 12:01:43 -0400 Subject: [PATCH] MAINT: Minor fix and version bump (#42) * MAINT: Minor fix and version bump * FIX: Ver * FIX: Link * FIX: Spacing --- README.rst | 6 +++--- doc/conf.py | 1 + mne_realtime/_version.py | 2 +- mne_realtime/conftest.py | 9 ++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index f6874ce..e0a48cc 100644 --- a/README.rst +++ b/README.rst @@ -16,8 +16,8 @@ MNE-realtime This is a repository for realtime analysis of MEG/EEG data with MNE. The documentation can be found here: - * `Examples`_ - * `API`_ +* `Examples`_ +* `API`_ Dependencies ------------ @@ -80,5 +80,5 @@ to report bugs. .. _Examples: https://mne.tools/mne-realtime/auto_examples/index.html .. _API: https://mne.tools/mne-realtime/api.html .. _numpy: https://numpy.org - .. _scipy: https://scipy.org/ + .. _scipy: https://scipy.org .. _MNE: https://mne.tools diff --git a/doc/conf.py b/doc/conf.py index c17f380..82e73b4 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -333,6 +333,7 @@ def reset_warnings(gallery_conf, fname): 'Evoked': 'mne.Evoked', 'Info': 'mne.Info', 'Montage': 'mne.channels.Montage', 'Forward': 'mne.Forward', 'DigMontage': 'mne.channels.DigMontage', + 'ConductorModel': 'mne.bem.ConductorModel', # mne_realtime 'RtEpochs': 'mne_realtime.RtEpochs', } diff --git a/mne_realtime/_version.py b/mne_realtime/_version.py index 8cfa142..d3ec452 100644 --- a/mne_realtime/_version.py +++ b/mne_realtime/_version.py @@ -1 +1 @@ -__version__ = "0.2.dev0" +__version__ = "0.2.0" diff --git a/mne_realtime/conftest.py b/mne_realtime/conftest.py index 604d4c3..4803045 100644 --- a/mne_realtime/conftest.py +++ b/mne_realtime/conftest.py @@ -3,10 +3,9 @@ # # License: BSD (3-clause) +import warnings import pytest -from mne.fixes import _get_args - def pytest_configure(config): """Configure pytest options.""" @@ -37,9 +36,9 @@ def matplotlib_config(): import matplotlib # "force" should not really be necessary but should not hurt kwargs = dict() - if 'warn' in _get_args(matplotlib.use): - kwargs['warn'] = False - matplotlib.use('agg', force=True, **kwargs) # don't pop up windows + with warnings.catch_warnings(record=True): # ignore warning + warnings.filterwarnings('ignore') + matplotlib.use('agg', force=True, **kwargs) # don't pop up windows import matplotlib.pyplot as plt assert plt.get_backend() == 'agg' # overwrite some params that can horribly slow down tests that