Skip to content

Commit

Permalink
FIX: Compat with 1.8 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Aug 19, 2024
1 parent 08efd22 commit e7ba849
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mne_kit_gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ._backend import _testing_mode


__version__ = '1.3.0'
__version__ = '1.4.0'


def _initialize_gui(frame, view=None):
Expand Down
10 changes: 6 additions & 4 deletions mne_kit_gui/_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions mne_kit_gui/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit e7ba849

Please sign in to comment.