Skip to content

Commit

Permalink
Backport PR #13082 on branch maint/1.9 (BUG: Fix bug with Mesa 3D det…
Browse files Browse the repository at this point in the history
…ection) (#13084)

Co-authored-by: Eric Larson <[email protected]>
  • Loading branch information
meeseeksmachine and larsoner authored Jan 24, 2025
1 parent d596b6d commit d3d0bf5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/changes/devel/13082.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug with automated Mesa 3D detection for proper 3D option setting on systems with software rendering, by `Eric Larson`_.
1 change: 1 addition & 0 deletions examples/preprocessing/movement_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
##############################################################################
# After checking the annotated movement artifacts, calculate the new transform
# and plot it:

new_dev_head_t = compute_average_dev_head_t(raw, head_pos)
raw.info["dev_head_t"] = new_dev_head_t
fig = mne.viz.plot_alignment(
Expand Down
1 change: 1 addition & 0 deletions mne/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def pytest_configure(config):
# pandas
ignore:\n*Pyarrow will become a required dependency of pandas.*:DeprecationWarning
ignore:np\.find_common_type is deprecated.*:DeprecationWarning
ignore:Python binding for RankQuantileOptions.*:
# pyvista <-> NumPy 2.0
ignore:__array_wrap__ must accept context and return_scalar arguments.*:DeprecationWarning
# nibabel <-> NumPy 2.0
Expand Down
3 changes: 0 additions & 3 deletions mne/viz/_brain/tests/test_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,6 @@ def test_single_hemi(hemi, renderer_interactive_pyvistaqt, brain_gc):
def test_brain_save_movie(tmp_path, renderer, brain_gc, interactive_state):
"""Test saving a movie of a Brain instance."""
imageio_ffmpeg = pytest.importorskip("imageio_ffmpeg")
# TODO: Figure out why this fails -- some imageio_ffmpeg error
if os.getenv("MNE_CI_KIND", "") == "conda" and platform.system() == "Linux":
pytest.skip("Test broken for unknown reason on conda linux")

brain = _create_testing_brain(
hemi="lh", time_viewer=False, cortex=["r", "b"]
Expand Down
2 changes: 1 addition & 1 deletion mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ def _is_osmesa(plotter):
"surface rendering, consider upgrading to 18.3.6 or "
"later."
)
is_osmesa = "via llvmpipe" in gpu_info
is_osmesa = "llvmpipe" in gpu_info
return is_osmesa


Expand Down

0 comments on commit d3d0bf5

Please sign in to comment.