We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PolyData.hemi
1 parent 85e6759 commit ee103b2Copy full SHA for ee103b2
1 file changed
mne/viz/_brain/_brain.py
@@ -442,7 +442,8 @@ def __init__(
442
)
443
self._layered_meshes[h] = mesh
444
# add metadata to the mesh for picking
445
- mesh._polydata._hemi = h
+ # using __setattr__ is needed to set dynamic properties for PolyData
446
+ object.__setattr__(mesh._polydata, '_hemi', h)
447
else:
448
actor = self._layered_meshes[h]._actor
449
self._renderer.plotter.add_actor(actor, render=False)
0 commit comments