Skip to content

Commit

Permalink
MAINT: Move
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 8, 2023
1 parent 74b521d commit f0c9363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ stages:
PYTHONUNBUFFERED: 1
PYTHONIOENCODING: 'utf-8'
AZURE_CI_WINDOWS: 'true'
MNE_3D_OPTION_ANTIALIAS: 'false'
PYTHON_ARCH: 'x64'
timeoutInMinutes: 70
strategy:
Expand Down
5 changes: 1 addition & 4 deletions mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from contextlib import contextmanager
from inspect import signature
import os
import re
import sys
import warnings
Expand Down Expand Up @@ -879,11 +878,9 @@ def _toggle_antialias(self):
# For Mayavi we have an "on activated" event or so, we should look into
# using this for Azure at some point, too.
if self.figure._is_active():
# Azure
bad_system = os.getenv("AZURE_CI_WINDOWS", "false").lower() == "true"
# MESA can't seem to handle MSAA and depth peeling simultaneously, see
# https://github.com/pyvista/pyvista/issues/4867
bad_system |= _is_mesa(self.plotter)
bad_system = _is_mesa(self.plotter)
for plotter in self._all_plotters:
if bad_system or not self.antialias:
plotter.disable_anti_aliasing()
Expand Down

0 comments on commit f0c9363

Please sign in to comment.