Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Compat with 1.8 #23

Merged
merged 5 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading