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.
1 parent b6b4c25 commit 7b05e3bCopy full SHA for 7b05e3b
1 file changed
mne/surface.py
@@ -803,14 +803,15 @@ def query(self, rr):
803
804
def _call_pyvista(self, rr):
805
pdata = _surface_to_polydata(dict(rr=rr))
806
- # PyVista 0.47+
807
- meth = (
808
- pdata.select_interior_points
809
- if hasattr(pdata, "select_interior_points")
810
- else pdata.select_enclosed_points
811
- )
+ # TODO VERSION PyVista 0.47+
+ if hasattr(pdata, "select_interior_points"):
+ meth = pdata.select_interior_points
+ key = "selected_points"
+ else:
+ meth = pdata.select_enclosed_points
812
+ key = "SelectedPoints"
813
out = meth(self.pdata, check_surface=False)
- return out["SelectedPoints"].astype(bool)
814
+ return out[key].astype(bool)
815
816
def _call_old(self, rr, n_jobs):
817
n_orig = len(rr)
0 commit comments