mne.viz.Brain opacity issue after update to pyvista 0.35.2

After updating to pyvista 0.35.2, I found that the opacity of mne.viz.Brain defaults to opaque (alpha=1) no matter what value of alpha is passed. For example the brain demo no longer renders correctly because the brain is opaque. Reverting to pyvista 0.35.1 seems to solve the problem. Is anyone else seeing this behavior?

import mne; mne.sys_info()
Platform: Windows-10-10.0.19042-SP0
Python: 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 06:57:19) [MSC v.1929 64 bit (AMD64)]
Executable: C:\Users\leisenman\Miniconda3\envs\seeg\python.exe
CPU: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel: 8 cores
Memory: 15.7 GB

mne: 1.0.3
numpy: 1.23.1 {blas=NO_ATLAS_INFO, lapack=lapack}
scipy: 1.8.1
matplotlib: 3.5.2 {backend=QtAgg}

sklearn: 1.1.1
numba: Not found
nibabel: 4.0.1
nilearn: 0.9.1
dipy: Not found
cupy: Not found
pandas: 1.4.3
pyvista: 0.35.2 {OpenGL 4.5.0 - Build via Intel(R) Iris(R) Xe Graphics}
pyvistaqt: 0.9.0
ipyvtklink: 0.2.2
vtk: 9.1.0
PyQt5: 5.15.7
ipympl: Not found
pooch: v1.6.0

mne_bids: 0.10
mne_nirs: Not found
mne_features: Not found
mne_qt_browser: Not found
mne_connectivity: Not found

1 Like

it’s not just you. See here: front-page gallery brains are all white · Issue #10939 · mne-tools/mne-python · GitHub

We’re still trying to figure out exactly what the root cause is, but it’s reassuring to know that the workaround is as easy as downgrading. Was there a specific feature in 0.35.2 that you needed, or were you just upgrading out of habit?

just bad habit. I’m glad to know that there is not some other issue with my install. Thanks.

@lneisenman this is now fixed, please use PyVista release 0.36.1

That works. Thanks for the follow up.