

def get_vertices_used(self, vertices=None):
    "Get the source space's vertices inside the label\n\n        Parameters\n        ----------\n        vertices : ndarray of int, shape (n_vertices,) | None\n            The set of vertices to compare the label to. If None, equals to\n            ``np.arange(10242)``. Defaults to None.\n\n        Returns\n        -------\n        label_verts : ndarray of in, shape (n_label_vertices,)\n            The vertices of the label corresponding used by the data.\n        "
    if (vertices is None):
        vertices = np.arange(10242)
    label_verts = vertices[in1d(vertices, self.vertices)]
    return label_verts

dataset/ETHPy150Open mne-tools/mne-python/mne/label.py Label.get_vertices_used/original