conpy.
select_vertices_in_sensor_range
(inst, dist, info=None, picks=None, trans=None, indices=False, verbose=None)¶Find vertices within given distance to a sensor.
The object to select vertices from.
The minimum distance between a vertex and the nearest sensor. All vertices for which the distance to the nearest sensor exceeds this limit are discarded.
The info structure that contains information about the channels. Only needs to be specified if the object to select vertices from does is an instance of SourceSpaces.
Indices of sensors to include in the search for the nearest sensor. If
None
, the default, only MEG channels are used.
Either the full path to the head<->MRI transform *-trans.fif
file
produced during coregistration, or the Transformation itself. If trans
is None, an identity matrix is assumed. Only needed when inst
is a
source space in MRI coordinates.
If True
, return vertex indices instead of vertex numbers. Defaults
to False
.
If not None, override default verbose level (see mne.verbose()
and Logging documentation for more).
Either a list of vertex numbers for the left and right hemisphere (if
indices==False
) or a single list with vertex indices.
See also
restrict_forward_to_vertices
restrict Forward to the given vertices
restrict_src_to_vertices
restrict SourceSpaces to the given vertices