diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8bbe6e3..f5f1ab4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -47,9 +47,8 @@ jobs: init-shell: >- bash powershell - cache-environment: true post-cleanup: 'all' - - run: python -m pip install --progress-bar off -e .[test] qtpy nibabel + - run: python -m pip install --progress-bar off -e .[test] qtpy nibabel defusedxml - run: python -m pip install --upgrade git+https://github.com/mne-tools/mne-python.git@main if: matrix.kind == 'dev' - run: mne sys_info -p diff --git a/mne_kit_gui/__init__.py b/mne_kit_gui/__init__.py index 9dbba22..7a61213 100644 --- a/mne_kit_gui/__init__.py +++ b/mne_kit_gui/__init__.py @@ -7,7 +7,7 @@ from ._backend import _testing_mode -__version__ = '1.3.0' +__version__ = '1.4.0' def _initialize_gui(frame, view=None): diff --git a/mne_kit_gui/_viewer.py b/mne_kit_gui/_viewer.py index e8856c2..27447d6 100644 --- a/mne_kit_gui/_viewer.py +++ b/mne_kit_gui/_viewer.py @@ -22,7 +22,6 @@ from mne.defaults import DEFAULTS from mne.surface import _CheckInside, _DistanceQuery from mne.transforms import apply_trans, rotation -from mne.utils import SilenceStdout from ._utils import _create_mesh_surf, _oct_glyph, _toggle_mlab_render @@ -171,9 +170,12 @@ def on_set_view(self, view, _): kwargs = dict(zip(('azimuth', 'elevation', 'roll'), kwargs[system][view])) kwargs['focalpoint'] = (0., 0., 0.) - with SilenceStdout(): - self.scene.mlab.view(distance=None, reset_roll=True, - figure=self.scene.mayavi_scene, **kwargs) + self.scene.mlab.view( + distance=None, + reset_roll=True, + figure=self.scene.mayavi_scene, + **kwargs, + ) class Object(HasPrivateTraits): diff --git a/mne_kit_gui/conftest.py b/mne_kit_gui/conftest.py index c1c8509..0d89169 100644 --- a/mne_kit_gui/conftest.py +++ b/mne_kit_gui/conftest.py @@ -40,6 +40,7 @@ def pytest_configure(config): ignore:pkg_resources is deprecated as an API.*:DeprecationWarning ignore:The traitsui.qt4.*:FutureWarning ignore:numpy\.ndarray size changed.*:RuntimeWarning + ignore:events_as_annotations defaults to False.*:FutureWarning always::ResourceWarning """ # noqa: E501 for warning_line in warning_lines.split('\n'):